From 09720dcf429713e18014e1656ff859fce2b23237 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 10 Mar 2012 10:20:06 -0800 Subject: Fix XEP-0163's updating of caps. --- sleekxmpp/plugins/xep_0163.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sleekxmpp/plugins') diff --git a/sleekxmpp/plugins/xep_0163.py b/sleekxmpp/plugins/xep_0163.py index fc40c751..79bdc4cd 100644 --- a/sleekxmpp/plugins/xep_0163.py +++ b/sleekxmpp/plugins/xep_0163.py @@ -41,7 +41,7 @@ class xep_0163(base_plugin): for ns in namespace: self.xmpp['xep_0030'].add_feature('%s+notify' % ns, jid=jid) - self.xmpp['xep_0115'].update_caps() + self.xmpp['xep_0115'].update_caps(jid) def remove_interest(self, namespace, jid=None): """ @@ -60,7 +60,7 @@ class xep_0163(base_plugin): for ns in namespace: self.xmpp['xep_0030'].del_feature(jid=jid, 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, block=True, callback=None, timeout=None): @@ -84,7 +84,6 @@ class xep_0163(base_plugin): Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT callback -- Optional reference to a stream handler function. Will be executed when a reply stanza is received. - """ if node is None: node = stanza.namespace -- cgit v1.2.3