summaryrefslogtreecommitdiff
path: root/plugins/contact.py
diff options
context:
space:
mode:
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')