Avoid a traceback on /close on a non-joined MucTab. fixed #2358

This commit is contained in:
Florent Le Coz 2012-05-10 13:22:05 +02:00
parent dfa8f33c67
commit 0f0efb7ada

View file

@ -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):