diff cagou/plugins/plugin_wid_chat.py @ 442:c2b63d3bb088

chat: fixed discoInfos call
author Goffi <goffi@goffi.org>
date Sat, 07 Mar 2020 00:05:50 +0100
parents ff548846df91
children 61322ff8090b
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.py	Sat Mar 07 00:05:50 2020 +0100
+++ b/cagou/plugins/plugin_wid_chat.py	Sat Mar 07 00:05:50 2020 +0100
@@ -731,8 +731,11 @@
         def discoEb(failure):
             log.warning("Disco failure, ignore this text: {}".format(failure))
 
-        G.host.bridge.discoInfos(jid_.domain, self.profile, callback=discoCb,
-                                 errback=discoEb)
+        G.host.bridge.discoInfos(
+            jid_.domain,
+            profile_key=self.profile,
+            callback=discoCb,
+            errback=discoEb)
 
     def onHeaderInputCompleted(self, input_wid, completed_text):
         self._hi_comp_allowed = False