misc: fixed some typos

This commit is contained in:
Matteo Cypriani 2014-09-15 14:18:25 +02:00
commit 71e29f5c44
4 changed files with 20 additions and 20 deletions

View file

@ -81,7 +81,7 @@ class TextCommands(object):
"""Add a callback which give information to the /whois command
@param callback: a callback which will be called with the following arguments
- whois_msg: list of information strings to display, callback need to append its own strings to it
- target_jid: full jid from who we want informations
- target_jid: full jid from whom we want information
- profile: %(doc_profile)s
@param priority: priority of the information to show (the highest priority will be displayed first)
@ -184,7 +184,7 @@ class TextCommands(object):
self.host.plugins[C.TEXT_CMDS].feedBack(feedback + self.HELP_SUGGESTION, mess_data, profile)
def cmd_whois(self, mess_data, profile):
"""show informations on entity"""
"""show information on entity"""
log.debug("Catched whois command")
entity = mess_data["unparsed"].strip()

View file

@ -620,7 +620,7 @@ class XEP_0045(object):
return self.cmd_title(mess_data, profile)
def _whois(self, whois_msg, mess_data, target_jid, profile):
""" Add MUC user informations to whois """
""" Add MUC user information to whois """
if mess_data['type'] != "groupchat":
return
if target_jid.userhost() not in self.clients[profile].joined_rooms:

View file

@ -269,7 +269,7 @@ class XEP_0054(object):
def setAvatar(self, filepath, profile_key=C.PROF_KEY_NONE):
"""Set avatar of the profile
@param filepath: path of the image of the avatar"""
#TODO: This is a temporary way of setting avatar, as other VCard informations are not managed.
#TODO: This is a temporary way of setting the avatar, as other VCard information is not managed.
# A proper full VCard management should be done (and more generaly a public/private profile)
client = self.host.getClient(profile_key)

View file

@ -764,10 +764,10 @@ class XEP_0065_handler(XMPPHandler):
self.host = plugin_parent.host
def _proxyDataResult(self, iq_elt):
"""Called with the informations about proxy according to XEP-0065 #4
"""Called with the information about proxy according to XEP-0065 #4
Params should be filled with these infos"""
if iq_elt["type"] == "error":
log.warning(_("Can't determine proxy informations"))
log.warning(_("Can't determine proxy information"))
return
query_elt = iq_elt.firstChildElement()
if query_elt.name != "query":