Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/structs.py
    ... ... @@ -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: