Only check for 110 to know if the presence is ours

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 <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-09-02 12:25:07 +02:00
parent eec8dcc206
commit 7c7523e0ab
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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: