when chat window is opened, we print the messages !

This commit is contained in:
Yann Leboulanger 2005-06-03 21:24:59 +00:00
parent 9bcfd27812
commit c39e0e80e9
1 changed files with 4 additions and 0 deletions

View File

@ -987,6 +987,10 @@ class Roster_window:
no_queue = True
if self.plugin.queues[account].has_key(jid):
no_queue = False
if self.plugin.windows[account]['chats'].has_key(jid):
self.plugin.windows[account]['chats'][jid].print_conversation(msg,
jid, tim = tim, encrypted = encrypted)
return
#We save it in a queue
if not self.plugin.queues[account].has_key(jid):
self.plugin.queues[account][jid] = Queue.Queue(50)