Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_chat.py @ 1386:1f3513cfb246
quick_frontend, primivitus: remove QuickChat.getUserNick + primivitus ChatText gets the user nick directly from parent Chat instance
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 23 Mar 2015 15:38:32 +0100 |
parents | 59c48796759e |
children | a025242bebe7 |
comparison
equal
deleted
inserted
replaced
1385:0dca4f9b264d | 1386:1f3513cfb246 |
---|---|
111 self.printInfo("<= %s has left the room" % nick) | 111 self.printInfo("<= %s has left the room" % nick) |
112 | 112 |
113 def setUserNick(self, nick): | 113 def setUserNick(self, nick): |
114 """Set the nick of the user, usefull for e.g. change the color of the user""" | 114 """Set the nick of the user, usefull for e.g. change the color of the user""" |
115 self.nick = nick | 115 self.nick = nick |
116 | |
117 def getUserNick(self): | |
118 return unicode(self.nick) | |
119 | 116 |
120 def changeUserNick(self, old_nick, new_nick): | 117 def changeUserNick(self, old_nick, new_nick): |
121 """Change nick of a user in group list""" | 118 """Change nick of a user in group list""" |
122 self.printInfo("%s is now known as %s" % (old_nick, new_nick)) | 119 self.printInfo("%s is now known as %s" % (old_nick, new_nick)) |
123 | 120 |