From a2440a8b21a5e52020257bea4d53ce5df1ba377f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 14 Oct 2017 15:39:11 +0200 Subject: Fix error presence handling --- poezio/tabs/muctab.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'poezio/tabs') 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: -- cgit v1.2.3