diff frontends/src/quick_frontend/quick_chat.py @ 1361:d3e9848b9574 frontends_multi_profiles

quick_frontend, primitivus (chat): pass a sorted list to Chat.setPresents
author souliane <souliane@mailoo.org>
date Wed, 11 Mar 2015 20:06:13 +0100
parents 8ea8fa13c351
children ba87b940f07a
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py	Wed Mar 11 12:43:48 2015 +0100
+++ b/frontends/src/quick_frontend/quick_chat.py	Wed Mar 11 20:06:13 2015 +0100
@@ -93,13 +93,14 @@
         return False
 
     def setPresents(self, nicks):
-        """Set the users presents in the contact list for a group chat
-        @param nicks: list of nicknames
+        """Set the occupants of a group chat.
+
+        @param nicks (list[unicode]): sorted list of nicknames
         """
-        log.debug (_("Adding users %s to room") % nicks)
+        log.debug(_("Adding users %s to room") % nicks)
         if self.type != C.CHAT_GROUP:
-            log.error (_("[INTERNAL] trying to set presents nicks for a non group chat window"))
-            raise Exception("INTERNAL ERROR") #TODO: raise proper Exception here
+            log.error(_("[INTERNAL] trying to set presents nicks for a non group chat window"))
+            raise Exception("INTERNAL ERROR")  # TODO: raise proper Exception here
         self.occupants.update(nicks)
 
     def replaceUser(self, nick, show_info=True):