Fix /destroy_room (7/78)

This commit is contained in:
mathieui 2014-12-19 22:11:21 +01:00
parent 98102b34bb
commit db60b72cf1
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

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