summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-09-27 00:37:02 -0700
committerLance Stout <lancestout@gmail.com>2013-09-27 00:37:02 -0700
commit65e3122f52cbc5e4c908d9527b1604cdf9ed6729 (patch)
tree28369f54c3574601d9b2ad9a487f13e39bbf0da0
parentbe874e3c70b16a7f5fc42e7ac79f6259e9327238 (diff)
downloadslixmpp-65e3122f52cbc5e4c908d9527b1604cdf9ed6729.tar.gz
slixmpp-65e3122f52cbc5e4c908d9527b1604cdf9ed6729.tar.bz2
slixmpp-65e3122f52cbc5e4c908d9527b1604cdf9ed6729.tar.xz
slixmpp-65e3122f52cbc5e4c908d9527b1604cdf9ed6729.zip
Update XEP-0319 plugin to track namespace change.
-rw-r--r--sleekxmpp/plugins/xep_0319/idle.py4
-rw-r--r--sleekxmpp/plugins/xep_0319/stanza.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0319/idle.py b/sleekxmpp/plugins/xep_0319/idle.py
index e541e0ad..90456f9f 100644
--- a/sleekxmpp/plugins/xep_0319/idle.py
+++ b/sleekxmpp/plugins/xep_0319/idle.py
@@ -38,10 +38,10 @@ class XEP_0319(BasePlugin):
self.xmpp.add_filter('out', self._stamp_idle_presence)
def session_bind(self, jid):
- self.xmpp['xep_0030'].add_feature('urn:xmpp:idle:0')
+ self.xmpp['xep_0030'].add_feature('urn:xmpp:idle:1')
def plugin_end(self):
- self.xmpp['xep_0030'].del_feature(feature='urn:xmpp:idle:0')
+ self.xmpp['xep_0030'].del_feature(feature='urn:xmpp:idle:1')
self.xmpp.del_filter('out', self._stamp_idle_presence)
self.xmpp.remove_handler('Idle Presence')
diff --git a/sleekxmpp/plugins/xep_0319/stanza.py b/sleekxmpp/plugins/xep_0319/stanza.py
index a0bb7272..abfb4f41 100644
--- a/sleekxmpp/plugins/xep_0319/stanza.py
+++ b/sleekxmpp/plugins/xep_0319/stanza.py
@@ -14,7 +14,7 @@ from sleekxmpp.plugins import xep_0082
class Idle(ElementBase):
name = 'idle'
- namespace = 'urn:xmpp:idle:0'
+ namespace = 'urn:xmpp:idle:1'
plugin_attrib = 'idle'
interfaces = set(['since'])