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


Commits:
07d50664 by lovetox at 2021-11-03T00:41:24+01:00
DiscoInfo: Add is_irc()

- - - - -


1 changed file:

- nbxmpp/structs.py


Changes:

=====================================
nbxmpp/structs.py
=====================================
@@ -474,6 +474,13 @@ class DiscoInfo(NamedTuple):
                     return True
         return False
 
+    @property
+    def is_irc(self) -> bool:
+        for identity in self.identities:
+            if identity.category == 'conference' and identity.type == 'irc':
+                return True
+        return False
+
     @property
     def muc_name(self) -> Optional[str]:
         if self.muc_room_name:



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/07d5066463e8cdbcfe15636f07f995d929610867

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/07d5066463e8cdbcfe15636f07f995d929610867
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to