diff src/memory/memory.py @ 1682:61391d863709

plugin XEP-0054: fixed vcard-update callback which was updating avatar when hash was empty, resulting in a really slow start
author Goffi <goffi@goffi.org>
date Wed, 25 Nov 2015 20:01:39 +0100
parents fd7f41d8cbdf
children 373ce871b0f3
line wrap: on
line diff
--- a/src/memory/memory.py	Wed Nov 25 18:24:34 2015 +0100
+++ b/src/memory/memory.py	Wed Nov 25 20:01:39 2015 +0100
@@ -453,9 +453,9 @@
             raise ValueError("Empty profile name")
         if name[0] == '@':
             raise ValueError("A profile name can't start with a '@'")
-        
+
         d = self.params.asyncCreateProfile(name)
-        
+
         def initPersonalKey(dummy):
             # be sure to call this after checking that the profile doesn't exist yet
             personal_key = BlockCipher.getRandomKey(base64=True)  # generated once for all and saved in a PersistentDict
@@ -691,7 +691,7 @@
                            C.ENTITY_ALL for all entities (all resources + bare jids)
         @param key: key to set (eg: "type")
         @param value: value for this key (eg: "chatroom")
-        @param silent(bool): if True, doesn't send signal to frontend, even there is a signal flag (see setSignalOnUpdate)
+        @param silent(bool): if True, doesn't send signal to frontend, even if there is a signal flag (see setSignalOnUpdate)
         @param profile_key: %(doc_profile_key)s
         """
         profile_cache = self._getProfileCache(profile_key)