plugin XEP-0045: added user information to /whois text command

This commit is contained in:
Goffi 2014-03-24 14:46:18 +01:00
commit b826dd7c10

View file

@ -44,7 +44,7 @@ class XEP_0092(object):
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 @@ class XEP_0092(object):
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