diff options
author | mathieui <mathieui@mathieui.net> | 2015-06-21 16:23:47 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-06-21 16:23:47 +0200 |
commit | f7164d35d29041790be8b9fcd77dd89f75aee789 (patch) | |
tree | 402b9eba0ea8c801c10c73318b0fc0a947343750 /slixmpp/plugins/xep_0163.py | |
parent | 04bff001713fa8ebcd67634048acb15caca3d8e6 (diff) | |
download | slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.tar.gz slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.tar.bz2 slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.tar.xz slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.zip |
Add a wrapper to get_info/get_items functions
(and fix caps in the process)
Diffstat (limited to 'slixmpp/plugins/xep_0163.py')
-rw-r--r-- | slixmpp/plugins/xep_0163.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0163.py b/slixmpp/plugins/xep_0163.py index e974a808..b85c662c 100644 --- a/slixmpp/plugins/xep_0163.py +++ b/slixmpp/plugins/xep_0163.py @@ -8,6 +8,7 @@ import logging +from slixmpp import asyncio from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins.base import BasePlugin, register_plugin @@ -61,7 +62,7 @@ class XEP_0163(BasePlugin): for ns in namespace: self.xmpp['xep_0030'].add_feature('%s+notify' % ns, jid=jid) - self.xmpp['xep_0115'].update_caps(jid) + asyncio.async(self.xmpp['xep_0115'].update_caps(jid)) def remove_interest(self, namespace, jid=None): """ @@ -80,7 +81,7 @@ class XEP_0163(BasePlugin): for ns in namespace: self.xmpp['xep_0030'].del_feature(jid=jid, feature='%s+notify' % namespace) - self.xmpp['xep_0115'].update_caps(jid) + asyncio.async(self.xmpp['xep_0115'].update_caps(jid)) def publish(self, stanza, node=None, id=None, options=None, ifrom=None, timeout_callback=None, callback=None, timeout=None): |