summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-05-10 13:22:05 +0200
committerFlorent Le Coz <louiz@louiz.org>2012-05-10 13:22:05 +0200
commit0f0efb7ada6ad60f88360bc6a8feb3607fcabd3c (patch)
tree0214e416df3e528b1483f178752deba493425af2
parentdfa8f33c67072162315662340fa7294a539e1fb0 (diff)
downloadpoezio-0f0efb7ada6ad60f88360bc6a8feb3607fcabd3c.tar.gz
poezio-0f0efb7ada6ad60f88360bc6a8feb3607fcabd3c.tar.bz2
poezio-0f0efb7ada6ad60f88360bc6a8feb3607fcabd3c.tar.xz
poezio-0f0efb7ada6ad60f88360bc6a8feb3607fcabd3c.zip
Avoid a traceback on /close on a non-joined MucTab. fixed #2358
-rw-r--r--src/tabs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index eecdaac2..7bc51f6c 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -819,6 +819,8 @@ class MucTab(ChatTab):
if self == self.core.current_tab():
self.refresh()
self.core.doupdate()
+ else:
+ msg =_("\x195}You left the chatroom\x193}")
self.core.disable_private_tabs(self.name, reason=msg)
def command_close(self, arg):