Commit 36d685a8 authored by Philipp Hörist's avatar Philipp Hörist

DiscoInfo: Add muc_name property

parent d2d5a377
......@@ -199,6 +199,17 @@ class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms ti
return True
return False
def muc_name(self):
if self.muc_room_name:
return self.muc_room_name
if self.muc_identity_name:
return self.muc_identity_name
if self.jid is not None:
return self.jid.getNode()
def muc_identity_name(self):
for identity in self.identities:
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