core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage
This commit is contained in:
parent
60f03a623e
commit
9d42c269db
1 changed files with 24 additions and 22 deletions
|
|
@ -210,17 +210,17 @@ class TextCommands(object):
|
|||
def cmd_whois(self, mess_data, profile):
|
||||
"""show informations on entity"""
|
||||
debug("Catched whois command")
|
||||
|
||||
|
||||
entity = mess_data["unparsed"].strip()
|
||||
|
||||
|
||||
if mess_data['type'] == "groupchat":
|
||||
room = mess_data["to"]
|
||||
if self.host.plugins["XEP-0045"].isNickInRoom(room, entity, profile):
|
||||
entity = u"%s/%s" % (room, entity)
|
||||
|
||||
|
||||
if not entity:
|
||||
target_jid = mess_data["to"]
|
||||
else:
|
||||
else:
|
||||
try:
|
||||
target_jid = jid.JID(entity)
|
||||
if not target_jid.user or not target_jid.host:
|
||||
|
|
@ -231,7 +231,7 @@ class TextCommands(object):
|
|||
|
||||
whois_msg = [_(u"whois for %(jid)s") % {'jid': target_jid}]
|
||||
#TODO: add informations here (client version, vcard, etc)
|
||||
|
||||
|
||||
self._feedBack(u"\n".join(whois_msg), mess_data, profile)
|
||||
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue