Update XEP-0319 plugin to track namespace change.
This commit is contained in:
parent
be874e3c70
commit
65e3122f52
2 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
||||
|
|
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue