plugin XEP-0045: added user information to /whois text command
This commit is contained in:
parent
9ac686c0a9
commit
b826dd7c10
1 changed files with 32 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue