Ad-hoc requests can be sent on any JID, not just servers

This commit is contained in:
Florent Le Coz 2014-08-01 15:12:58 +02:00
parent 992fe72554
commit ba93f3f236

View file

@ -945,7 +945,7 @@ def command_adhoc(self, arg):
if len(arg) > 1: if len(arg) > 1:
return self.command_help('list') return self.command_help('list')
elif arg: elif arg:
jid = safeJID(arg[0]).server jid = safeJID(arg[0])
else: else:
return self.information('Please provide a jid', 'Error') return self.information('Please provide a jid', 'Error')
list_tab = tabs.AdhocCommandsListTab(jid) list_tab = tabs.AdhocCommandsListTab(jid)