summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-11-03 12:37:26 -0400
committerLance Stout <lancestout@gmail.com>2010-11-03 12:37:26 -0400
commitffc6f031d9134015f16fadedc4e94e6f1a502b7b (patch)
tree516b276d4e1709cd76e7dfc56fb79b4573eeafd7 /sleekxmpp
parent973890e2c913c466b3dfb48c8bd01c28a7baf6c5 (diff)
downloadslixmpp-ffc6f031d9134015f16fadedc4e94e6f1a502b7b.tar.gz
slixmpp-ffc6f031d9134015f16fadedc4e94e6f1a502b7b.tar.bz2
slixmpp-ffc6f031d9134015f16fadedc4e94e6f1a502b7b.tar.xz
slixmpp-ffc6f031d9134015f16fadedc4e94e6f1a502b7b.zip
Updated namespaced used in the XEP-0199 plugin.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0199.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0199.py b/sleekxmpp/plugins/xep_0199.py
index 3fc62f55..ccd284f8 100644
--- a/sleekxmpp/plugins/xep_0199.py
+++ b/sleekxmpp/plugins/xep_0199.py
@@ -16,14 +16,14 @@ class xep_0199(base.base_plugin):
def plugin_init(self):
self.description = "XMPP Ping"
self.xep = "0199"
- self.xmpp.add_handler("<iq type='get' xmlns='%s'><ping xmlns='http://www.xmpp.org/extensions/xep-0199.html#ns'/></iq>" % self.xmpp.default_ns, self.handler_ping, name='XMPP Ping')
+ self.xmpp.add_handler("<iq type='get' xmlns='%s'><ping xmlns='urn:xmpp:ping'/></iq>" % self.xmpp.default_ns, self.handler_ping, name='XMPP Ping')
self.running = False
#if self.config.get('keepalive', True):
#self.xmpp.add_event_handler('session_start', self.handler_pingserver, threaded=True)
def post_init(self):
base.base_plugin.post_init(self)
- self.xmpp.plugin['xep_0030'].add_feature('http://www.xmpp.org/extensions/xep-0199.html#ns')
+ self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:ping')
def handler_pingserver(self, xml):
if not self.running:
@@ -47,7 +47,7 @@ class xep_0199(base.base_plugin):
iq = self.xmpp.makeIq(id)
iq.attrib['type'] = 'get'
iq.attrib['to'] = jid
- ping = ET.Element('{http://www.xmpp.org/extensions/xep-0199.html#ns}ping')
+ ping = ET.Element('{urn:xmpp:ping}ping')
iq.append(ping)
startTime = time.clock()
#pingresult = self.xmpp.send(iq, self.xmpp.makeIq(id), timeout)