comparison frontends/src/quick_frontend/quick_chat.py @ 531:3bd8f84f920d

primitivus: fixed info messages timestamp
author Goffi <goffi@goffi.org>
date Sun, 28 Oct 2012 17:59:24 +0100
parents 8ee9113d307b
children 428fa16363e7
comparison
equal deleted inserted replaced
530:6c07127ad2ed 531:3bd8f84f920d
128 """Print message in chat window. Must be implemented by child class""" 128 """Print message in chat window. Must be implemented by child class"""
129 jid=JID(from_jid) 129 jid=JID(from_jid)
130 nick = self._get_nick(jid) 130 nick = self._get_nick(jid)
131 mymess = (jid.resource == self.nick) if self.type == "group" else (jid.short == self.host.profiles[profile]['whoami'].short) #mymess = True if message comes from local user 131 mymess = (jid.resource == self.nick) if self.type == "group" else (jid.short == self.host.profiles[profile]['whoami'].short) #mymess = True if message comes from local user
132 if msg.startswith('/me '): 132 if msg.startswith('/me '):
133 self.printInfo('* %s %s' % (nick, msg[4:]),type='me') 133 self.printInfo('* %s %s' % (nick, msg[4:]),type='me', timestamp=timestamp)
134 return 134 return
135 return jid, nick, mymess 135 return jid, nick, mymess
136 136
137 def printInfo(self, msg, type='normal'): 137 def printInfo(self, msg, type='normal'):
138 """Print general info 138 """Print general info