summaryrefslogtreecommitdiff
path: root/plugins/contact.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-30 13:59:42 +0100
committerLink Mauve <linkmauve@linkmauve.fr>2021-02-03 15:22:09 +0100
commit46d90bf8324e4612cbe2aee2e7eeb441ed1a2617 (patch)
tree6a9a3f9a770ce14b9fe4746867e96eb93890b00f /plugins/contact.py
parente2224b938bc2a56053d59fa9671c5b77d1fc1b05 (diff)
downloadpoezio-46d90bf8324e4612cbe2aee2e7eeb441ed1a2617.tar.gz
poezio-46d90bf8324e4612cbe2aee2e7eeb441ed1a2617.tar.bz2
poezio-46d90bf8324e4612cbe2aee2e7eeb441ed1a2617.tar.xz
poezio-46d90bf8324e4612cbe2aee2e7eeb441ed1a2617.zip
plugins: remove callbacks
Diffstat (limited to 'plugins/contact.py')
-rw-r--r--plugins/contact.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/contact.py b/plugins/contact.py
index 461a1875..a3a0514b 100644
--- a/plugins/contact.py
+++ b/plugins/contact.py
@@ -51,9 +51,9 @@ class Plugin(BasePlugin):
else:
self.api.information('No Contact Addresses for %s' % iq['from'], 'Error')
- def command_disco(self, jid):
+ async def command_disco(self, jid):
try:
- self.core.xmpp.plugin['xep_0030'].get_info(jid=jid, cached=False,
- callback=self.on_disco)
+ iq = await self.core.xmpp.plugin['xep_0030'].get_info(jid=jid, cached=False)
+ self.on_disco(iq)
except InvalidJID as e:
self.api.information('Invalid JID ā€œ%sā€: %s' % (jid, e), 'Error')