comparison src/plugins/plugin_misc_text_commands.py @ 1199:96fb74a4714d

misc: fixed some typos
author Matteo Cypriani <mcy@lm7.fr>
date Mon, 15 Sep 2014 14:18:25 +0200
parents 0abce7f17782
children faa1129559b8
comparison
equal deleted inserted replaced
1198:16ce9a6580a3 1199:96fb74a4714d
79 79
80 def addWhoIsCb(self, callback, priority=0): 80 def addWhoIsCb(self, callback, priority=0):
81 """Add a callback which give information to the /whois command 81 """Add a callback which give information to the /whois command
82 @param callback: a callback which will be called with the following arguments 82 @param callback: a callback which will be called with the following arguments
83 - whois_msg: list of information strings to display, callback need to append its own strings to it 83 - whois_msg: list of information strings to display, callback need to append its own strings to it
84 - target_jid: full jid from who we want informations 84 - target_jid: full jid from whom we want information
85 - profile: %(doc_profile)s 85 - profile: %(doc_profile)s
86 @param priority: priority of the information to show (the highest priority will be displayed first) 86 @param priority: priority of the information to show (the highest priority will be displayed first)
87 87
88 """ 88 """
89 self._whois.append((priority, callback)) 89 self._whois.append((priority, callback))
182 types = _(' or ').join(types) 182 types = _(' or ').join(types)
183 feedback = _("/%(command)s command only applies on %(type)s messages. ") % {'command': command, 'type': types} 183 feedback = _("/%(command)s command only applies on %(type)s messages. ") % {'command': command, 'type': types}
184 self.host.plugins[C.TEXT_CMDS].feedBack(feedback + self.HELP_SUGGESTION, mess_data, profile) 184 self.host.plugins[C.TEXT_CMDS].feedBack(feedback + self.HELP_SUGGESTION, mess_data, profile)
185 185
186 def cmd_whois(self, mess_data, profile): 186 def cmd_whois(self, mess_data, profile):
187 """show informations on entity""" 187 """show information on entity"""
188 log.debug("Catched whois command") 188 log.debug("Catched whois command")
189 189
190 entity = mess_data["unparsed"].strip() 190 entity = mess_data["unparsed"].strip()
191 191
192 if mess_data['type'] == "groupchat": 192 if mess_data['type'] == "groupchat":