Commit 07d50664 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

DiscoInfo: Add is_irc()

parent fe4b7e03
Pipeline #8443 failed with stages
in 2 minutes and 35 seconds
......@@ -474,6 +474,13 @@ class DiscoInfo(NamedTuple):
return True
return False
def is_irc(self) -> bool:
for identity in self.identities:
if identity.category == 'conference' and identity.type == 'irc':
return True
return False
def muc_name(self) -> Optional[str]:
if self.muc_room_name:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment