summaryrefslogtreecommitdiff
path: root/src/core/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commands.py')
-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'))