Should really fix #2284 and some other tbs
This commit is contained in:
parent
fbb465a092
commit
fc20de76ff
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue