Commit a2440a8b authored by mathieui's avatar mathieui

Fix error presence handling

parent 9eb4b29d
......@@ -273,7 +273,9 @@ class MucTab(ChatTab):
status_codes = set()
for status_code in presence.xml.findall(STATUS_XPATH):
status_codes.add(status_code.attrib['code'])
if not self.joined:
if presence['type'] == 'error':
self.core.room_error(presence, self.name)
elif not self.joined:
if '110' in status_codes:
self.process_presence_buffer(presence)
else:
......
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