bugfix when the message contain a ':'
This commit is contained in:
parent
b2d36d6321
commit
0805f5a65b
|
@ -338,12 +338,8 @@ class Tabbed_chat_window(chat.Chat):
|
||||||
name = self.plugin.nicks[self.account]
|
name = self.plugin.nicks[self.account]
|
||||||
elif msg[1] == 'recv':
|
elif msg[1] == 'recv':
|
||||||
kind = 'incoming'
|
kind = 'incoming'
|
||||||
# self.users is not initialized here yet
|
name = self.users[jid].name
|
||||||
name = self.plugin.roster.contacts[self.account][jid][0].name
|
|
||||||
|
|
||||||
tim = time.gmtime(float(msg[0]))
|
tim = time.gmtime(float(msg[0]))
|
||||||
if msg[2][-1] == '\n':
|
text = ':'.join(msg[2:])[0:-1] #remove the latest \n
|
||||||
text = msg[2][:-1]
|
|
||||||
else:
|
|
||||||
text = msg[2]
|
|
||||||
self.print_conversation_line(text, jid, kind, name, tim)
|
self.print_conversation_line(text, jid, kind, name, tim)
|
||||||
|
|
Loading…
Reference in New Issue