Update XEP-0319 plugin to track namespace change.
This commit is contained in:
parent
be874e3c70
commit
65e3122f52
@ -38,10 +38,10 @@ class XEP_0319(BasePlugin):
|
|||||||
self.xmpp.add_filter('out', self._stamp_idle_presence)
|
self.xmpp.add_filter('out', self._stamp_idle_presence)
|
||||||
|
|
||||||
def session_bind(self, jid):
|
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):
|
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.del_filter('out', self._stamp_idle_presence)
|
||||||
self.xmpp.remove_handler('Idle Presence')
|
self.xmpp.remove_handler('Idle Presence')
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ from sleekxmpp.plugins import xep_0082
|
|||||||
|
|
||||||
class Idle(ElementBase):
|
class Idle(ElementBase):
|
||||||
name = 'idle'
|
name = 'idle'
|
||||||
namespace = 'urn:xmpp:idle:0'
|
namespace = 'urn:xmpp:idle:1'
|
||||||
plugin_attrib = 'idle'
|
plugin_attrib = 'idle'
|
||||||
interfaces = set(['since'])
|
interfaces = set(['since'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user