Mercurial > libervia-backend
diff src/plugins/plugin_misc_text_commands.py @ 698:d731ae066158
core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Nov 2013 13:58:10 +0100 |
parents | 0c84fb112d70 |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_text_commands.py Wed Nov 13 13:57:36 2013 +0100 +++ b/src/plugins/plugin_misc_text_commands.py Wed Nov 13 13:58:10 2013 +0100 @@ -210,17 +210,17 @@ 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 @@ 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