Closed antonv6 closed 8 years ago
XEP_0045 plugin does this in handle_groupchat_invite():
handle_groupchat_invite()
if inv['from'] not in self.rooms.keys(): self.xmpp.event("groupchat_invite", inv)
And this in leaveMUC():
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.
self.rooms
fixed by PR https://github.com/fritzy/SleekXMPP/pull/408
XEP_0045 plugin does this in
handle_groupchat_invite()
:And this in
leaveMUC()
: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.