From db60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 19 Dec 2014 22:11:21 +0100 Subject: Fix /destroy_room (7/78) --- src/core/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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')) -- cgit v1.2.3