summaryrefslogtreecommitdiff
path: root/src/multiuserchat.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-06 16:00:41 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-06 16:00:41 +0100
commit6597d833550d8469490a8840d58a82cb35c04138 (patch)
treeca98291bafa1be02a99aeee3beeabc8679f9a430 /src/multiuserchat.py
parent0dd3b171e5049276b15b9287915aa7a124ae9420 (diff)
parent7bf63c51e2650042932ad78207ce5366bab3e38a (diff)
downloadpoezio-6597d833550d8469490a8840d58a82cb35c04138.tar.gz
poezio-6597d833550d8469490a8840d58a82cb35c04138.tar.bz2
poezio-6597d833550d8469490a8840d58a82cb35c04138.tar.xz
poezio-6597d833550d8469490a8840d58a82cb35c04138.zip
Merge branch 'master' into plugins
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r--src/multiuserchat.py5
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):
"""