Fix XEP-0163's updating of caps.
This commit is contained in:
parent
ec044affd4
commit
09720dcf42
@ -41,7 +41,7 @@ class xep_0163(base_plugin):
|
|||||||
for ns in namespace:
|
for ns in namespace:
|
||||||
self.xmpp['xep_0030'].add_feature('%s+notify' % ns,
|
self.xmpp['xep_0030'].add_feature('%s+notify' % ns,
|
||||||
jid=jid)
|
jid=jid)
|
||||||
self.xmpp['xep_0115'].update_caps()
|
self.xmpp['xep_0115'].update_caps(jid)
|
||||||
|
|
||||||
def remove_interest(self, namespace, jid=None):
|
def remove_interest(self, namespace, jid=None):
|
||||||
"""
|
"""
|
||||||
@ -60,7 +60,7 @@ class xep_0163(base_plugin):
|
|||||||
for ns in namespace:
|
for ns in namespace:
|
||||||
self.xmpp['xep_0030'].del_feature(jid=jid,
|
self.xmpp['xep_0030'].del_feature(jid=jid,
|
||||||
feature='%s+notify' % namespace)
|
feature='%s+notify' % namespace)
|
||||||
self.xmpp['xep_0115'].update_caps()
|
self.xmpp['xep_0115'].update_caps(jid)
|
||||||
|
|
||||||
def publish(self, stanza, node=None, id=None, options=None, ifrom=None,
|
def publish(self, stanza, node=None, id=None, options=None, ifrom=None,
|
||||||
block=True, callback=None, timeout=None):
|
block=True, callback=None, timeout=None):
|
||||||
@ -84,7 +84,6 @@ class xep_0163(base_plugin):
|
|||||||
Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT
|
Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT
|
||||||
callback -- Optional reference to a stream handler function. Will
|
callback -- Optional reference to a stream handler function. Will
|
||||||
be executed when a reply stanza is received.
|
be executed when a reply stanza is received.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if node is None:
|
if node is None:
|
||||||
node = stanza.namespace
|
node = stanza.namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user