Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 44db794

Browse files
authored
Merge pull request #408 from trusty/develop
Handling removal of user logged in using sleekxmpp.
2 parents ba1b088 + d438906 commit 44db794

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

sleekxmpp/plugins/xep_0045.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ def handle_groupchat_presence(self, pr):
161161
if pr['type'] == 'unavailable':
162162
if entry['nick'] in self.rooms[entry['room']]:
163163
del self.rooms[entry['room']][entry['nick']]
164+
if '{}/{}'.format(entry['room'], entry['nick']) == self.getOurJidInRoom(entry['room']):
165+
log.debug("I got kicked :( from %s" % entry['room'])
166+
del self.rooms[entry['room']]
164167
got_offline = True
165168
else:
166169
if entry['nick'] not in self.rooms[entry['room']]:

sleekxmpp/plugins/xep_0066/stanza.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ class OOB(ElementBase):
2929
name = 'x'
3030
namespace = 'jabber:x:oob'
3131
plugin_attrib = 'oob'
32-
interfaces = set(('url', 'desc'))
32+
interfaces = set(('url', 'desc', 'size'))
3333
sub_interfaces = interfaces

0 commit comments

Comments
 (0)