Update XEP-0319 plugin to track namespace change.

This commit is contained in:
Lance Stout 2013-09-27 00:37:02 -07:00
parent be874e3c70
commit 65e3122f52
2 changed files with 3 additions and 3 deletions

View file

@ -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')

View file

@ -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'])