From 7c7523e0ab0974e97d1e9bee17e961fefb06f42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 2 Sep 2019 12:25:07 +0200 Subject: Only check for 110 to know if the presence is ours MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is only be needed for non-compliant servers. Removing as there might be corner cases where it's actually harmful. Signed-off-by: Maxime “pep” Buquet --- poezio/tabs/muctab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 22e86705..d9c09b7c 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -456,7 +456,7 @@ class MucTab(ChatTab): if presence['type'] == 'error': self.core.room_error(presence, self.jid.bare) elif not self.joined: - own = '110' in status_codes or self.own_nick == presence['from'].resource + own = '110' in status_codes if own or len(self.presence_buffer) >= 10: self.process_presence_buffer(presence, own) else: -- cgit v1.2.3