summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-14 15:39:11 +0200
committermathieui <mathieui@mathieui.net>2017-10-14 15:45:36 +0200
commita2440a8b21a5e52020257bea4d53ce5df1ba377f (patch)
tree25155bc0d1b3ac4344ca5da5cf4fb79fa633c1b4
parent9eb4b29d246317028006f87ddd49744e0b5c96eb (diff)
downloadpoezio-a2440a8b21a5e52020257bea4d53ce5df1ba377f.tar.gz
poezio-a2440a8b21a5e52020257bea4d53ce5df1ba377f.tar.bz2
poezio-a2440a8b21a5e52020257bea4d53ce5df1ba377f.tar.xz
poezio-a2440a8b21a5e52020257bea4d53ce5df1ba377f.zip
Fix error presence handling
-rw-r--r--poezio/tabs/muctab.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index a1f55b8d..ec22cf15 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -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: