From ba93f3f236e68b14d84c9bc621c638c4f79207f9 Mon Sep 17 00:00:00 2001
From: Florent Le Coz <louiz@louiz.org>
Date: Fri, 1 Aug 2014 15:12:58 +0200
Subject: Ad-hoc requests can be sent on any JID, not just servers

---
 src/core/commands.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/commands.py b/src/core/commands.py
index bb6210dc..07b0cb1e 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -945,7 +945,7 @@ def command_adhoc(self, arg):
     if len(arg) > 1:
         return self.command_help('list')
     elif arg:
-        jid = safeJID(arg[0]).server
+        jid = safeJID(arg[0])
     else:
         return self.information('Please provide a jid', 'Error')
     list_tab = tabs.AdhocCommandsListTab(jid)
-- 
cgit v1.2.3