fritzy / SleekXMPP

Python 2.6+/3.1+ XMPP Library
http://groups.google.com/group/sleekxmpp-discussion
Other
1.1k stars 299 forks source link

MUC plugin still thinks it's in the room after it's been kicked out #411

Closed antonv6 closed 8 years ago

antonv6 commented 8 years ago

XEP_0045 plugin does this in handle_groupchat_invite():

if inv['from'] not in self.rooms.keys():
    self.xmpp.event("groupchat_invite", inv)

And this in leaveMUC():

del self.rooms[room]

So far so good - if the bot leaves (voluntarily) a room, then it can be invited to it again (i.e. it will handle the invite).

Unfortunately, if the bot is kicked, self.rooms is not updated and so the bot will no longer handle invites.

bear commented 8 years ago

fixed by PR https://github.com/fritzy/SleekXMPP/pull/408