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

Commit

Permalink
Handling removal of user logged in using sleekxmpp.
Browse files Browse the repository at this point in the history
This is required to make sure that readding of user by the admin works as expected.
  • Loading branch information
trusty committed May 4, 2016
1 parent 4305edd commit d90492f
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit d90492f

Please sign in to comment.