Should really fix #2284 and some other tbs

This commit is contained in:
mathieui 2011-11-06 14:38:00 +01:00
parent fbb465a092
commit fc20de76ff

View file

@ -65,7 +65,10 @@ def leave_groupchat(xmpp, jid, own_nick, msg):
"""
Leave the groupchat
"""
xmpp.plugin['xep_0045'].leaveMUC(jid, own_nick, msg)
try:
xmpp.plugin['xep_0045'].leaveMUC(jid, own_nick, msg)
except KeyError:
log.debug("WARNING: in muc.leave_groupchat: could not leave the room")
def set_user_role(xmpp, jid, nick, reason, role):
"""