Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
07d50664
by lovetox at 2021-11-03T00:41:24+01:00
1 changed file:
Changes:
| ... | ... | @@ -474,6 +474,13 @@ class DiscoInfo(NamedTuple): |
| 474 | 474 |
return True
|
| 475 | 475 |
return False
|
| 476 | 476 |
|
| 477 |
+ @property
|
|
| 478 |
+ def is_irc(self) -> bool:
|
|
| 479 |
+ for identity in self.identities:
|
|
| 480 |
+ if identity.category == 'conference' and identity.type == 'irc':
|
|
| 481 |
+ return True
|
|
| 482 |
+ return False
|
|
| 483 |
+ |
|
| 477 | 484 |
@property
|
| 478 | 485 |
def muc_name(self) -> Optional[str]:
|
| 479 | 486 |
if self.muc_room_name:
|