quick_app: self.occupants for group chat are now managed by quick_chat. self.options.profile now support unicode

This commit is contained in:
Goffi 2010-07-16 20:12:54 +08:00
commit f18d8f2d7e

View file

@ -48,6 +48,7 @@ class QuickChat():
if self.type != "group":
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):
"""Add user if it is not in the group list"""
@ -55,6 +56,7 @@ class QuickChat():
if self.type != "group":
error (_("[INTERNAL] trying to replace user for a non group chat window"))
raise Exception("INTERNAL ERROR") #TODO: raise proper Exception here
self.occupants.add(nick)
def setUserNick(self, nick):
"""Set the nick of the user, usefull for e.g. change the color of the user"""
@ -66,6 +68,7 @@ class QuickChat():
if self.type != "group":
error (_("[INTERNAL] trying to remove user for a non group chat window"))
raise Exception("INTERNAL ERROR") #TODO: raise proper Exception here
self.occupants.remove(nick)
def setSubject(self, subject):
"""Set title for a group chat"""