Some status codes should only be in our presence

Some Servers broadcast these status codes in every presence which
is wrong accoring to the XEP
This commit is contained in:
Philipp Hörist 2018-04-04 22:16:46 +02:00
parent 1b8d76bf9e
commit 898ac96647
1 changed files with 1 additions and 1 deletions

View File

@ -1749,7 +1749,7 @@ class GroupchatControl(ChatControlBase):
# status_code # status_code
# http://www.xmpp.org/extensions/xep-0045.html#registrar-statuscodes-\ # http://www.xmpp.org/extensions/xep-0045.html#registrar-statuscodes-\
# init # init
if obj.status_code: if obj.status_code and obj.nick == self.nick:
if '110' in obj.status_code: if '110' in obj.status_code:
# We just join the room # We just join the room
if self.room_jid in app.automatic_rooms[self.account] and \ if self.room_jid in app.automatic_rooms[self.account] and \