summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-19 22:11:21 +0100
committermathieui <mathieui@mathieui.net>2014-12-19 22:11:21 +0100
commitdb60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7 (patch)
tree5acc298dae4e208c6879a65a6b6a9292240c0084
parent98102b34bb9e23a6b0d2ffe87fc372e091516c87 (diff)
downloadpoezio-db60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7.tar.gz
poezio-db60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7.tar.bz2
poezio-db60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7.tar.xz
poezio-db60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7.zip
Fix /destroy_room (7/78)
-rw-r--r--src/core/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/commands.py b/src/core/commands.py
index 84fea78c..15ff96e2 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -887,7 +887,7 @@ def command_destroy_room(self, args):
room = safeJID(args[0]).bare
if room:
muc.destroy_room(self.xmpp, room)
- elif isinstance(self.current_tab(), tabs.MucTab) and not arg:
+ elif isinstance(self.current_tab(), tabs.MucTab) and not args[0]:
muc.destroy_room(self.xmpp, self.current_tab().general_jid)
else:
self.information(_('Invalid JID: "%s"') % args[0], _('Error'))