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

Commit

Permalink
Merge pull request #408 from trusty/develop
Browse files Browse the repository at this point in the history
Handling removal of user logged in using sleekxmpp.
  • Loading branch information
bear committed Jul 30, 2016
2 parents ba1b088 + d438906 commit 44db794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sleekxmpp/plugins/xep_0045.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def handle_groupchat_presence(self, pr):
if pr['type'] == 'unavailable':
if entry['nick'] in self.rooms[entry['room']]:
del self.rooms[entry['room']][entry['nick']]
if '{}/{}'.format(entry['room'], entry['nick']) == self.getOurJidInRoom(entry['room']):
log.debug("I got kicked :( from %s" % entry['room'])
del self.rooms[entry['room']]
got_offline = True
else:
if entry['nick'] not in self.rooms[entry['room']]:
Expand Down
2 changes: 1 addition & 1 deletion sleekxmpp/plugins/xep_0066/stanza.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ class OOB(ElementBase):
name = 'x'
namespace = 'jabber:x:oob'
plugin_attrib = 'oob'
interfaces = set(('url', 'desc'))
interfaces = set(('url', 'desc', 'size'))
sub_interfaces = interfaces

0 comments on commit 44db794

Please sign in to comment.