summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-02-01 17:14:13 +0100
committermathieui <mathieui@mathieui.net>2013-02-01 17:15:24 +0100
commitaab20c1e294148bcee77745db047c1c299c3402a (patch)
tree087a875df1a4d2a65ae37da0e2e3087f4ae65074
parentedd82fef9be80ae58061b3a58c147312542e7295 (diff)
downloadpoezio-aab20c1e294148bcee77745db047c1c299c3402a.tar.gz
poezio-aab20c1e294148bcee77745db047c1c299c3402a.tar.bz2
poezio-aab20c1e294148bcee77745db047c1c299c3402a.tar.xz
poezio-aab20c1e294148bcee77745db047c1c299c3402a.zip
Fix a traceback with the Ping plugin
-rw-r--r--plugins/ping.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ping.py b/plugins/ping.py
index 349b7f52..2c890563 100644
--- a/plugins/ping.py
+++ b/plugins/ping.py
@@ -1,6 +1,6 @@
from plugin import BasePlugin
-from sleekxmpp.xmlstream.jid import JID
from roster import roster
+from common import safeJID
import common
import tabs
@@ -16,9 +16,9 @@ class Plugin(BasePlugin):
def command_ping(self, arg):
if not arg:
return
- jid = JID(arg)
+ jid = safeJID(arg)
try:
- delay = self.core.xmpp.plugin['xep_0199'].send_ping(jid=jid)
+ delay = self.core.xmpp.plugin['xep_0199'].ping(jid=jid)
except:
delay = None
if delay is not None: