Fix /destroy_room (7/78)
This commit is contained in:
parent
98102b34bb
commit
db60b72cf1
1 changed files with 1 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue