diff src/plugins/plugin_xep_0092.py @ 928:73873e9b56f7

plugin XEP-0045: added user information to /whois text command
author Goffi <goffi@goffi.org>
date Mon, 24 Mar 2014 14:46:18 +0100
parents d609581bf74a
children c6d8fc63b1db
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0092.py	Mon Mar 24 13:49:37 2014 +0100
+++ b/src/plugins/plugin_xep_0092.py	Mon Mar 24 14:46:18 2014 +0100
@@ -44,7 +44,7 @@
         info(_("Plugin XEP_0092 initialization"))
         self.host = host
         try:
-            self.host.plugins[C.TEXT_CMDS].addWhoIsCb(self._whois, 100)
+            self.host.plugins[C.TEXT_CMDS].addWhoIsCb(self._whois, 50)
         except KeyError:
             info(_("Text commands not available"))
 
@@ -83,7 +83,7 @@
         return tuple(ret)
 
 
-    def _whois(self, whois_msg, target_jid, profile):
+    def _whois(self, whois_msg, mess_data, target_jid, profile):
         """ Add software/OS information to whois """
         def versionCb(version_data):
             name, version, os = version_data