From 46d90bf8324e4612cbe2aee2e7eeb441ed1a2617 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 30 Jan 2021 13:59:42 +0100 Subject: plugins: remove callbacks --- plugins/contact.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/contact.py') 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') -- cgit v1.2.3