diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-06 15:58:09 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-06 15:58:09 +0100 |
commit | a86504868a914eea24e2a28434d965d18c114cf8 (patch) | |
tree | ca98291bafa1be02a99aeee3beeabc8679f9a430 /src/multiuserchat.py | |
parent | 1a2d7784fea7bbdd9b30a0a93c1f52c7583468bd (diff) | |
parent | 7bf63c51e2650042932ad78207ce5366bab3e38a (diff) | |
download | poezio-a86504868a914eea24e2a28434d965d18c114cf8.tar.gz poezio-a86504868a914eea24e2a28434d965d18c114cf8.tar.bz2 poezio-a86504868a914eea24e2a28434d965d18c114cf8.tar.xz poezio-a86504868a914eea24e2a28434d965d18c114cf8.zip |
Merge branch 'master' into plugins
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r-- | src/multiuserchat.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py index 264f0e4a..ac910837 100644 --- a/src/multiuserchat.py +++ b/src/multiuserchat.py @@ -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): """ |