prevent TB

This commit is contained in:
Yann Leboulanger 2006-01-30 17:23:18 +00:00
parent 5e2d09d1e3
commit 9b29bbe324
1 changed files with 3 additions and 2 deletions

View File

@ -433,8 +433,9 @@ class Connection:
if not self.last_history_line.has_key(jid): if not self.last_history_line.has_key(jid):
return return
self.dispatch('GC_MSG', (frm, msgtxt, tim)) self.dispatch('GC_MSG', (frm, msgtxt, tim))
if self.name not in no_log_for and not\ if self.name not in no_log_for and jid in self.last_history_line \
int(float(time.mktime(tim))) <= self.last_history_line[jid]: and not int(float(time.mktime(tim))) <= \
self.last_history_line[jid]:
gajim.logger.write('gc_msg', frm, msgtxt, tim = tim) gajim.logger.write('gc_msg', frm, msgtxt, tim = tim)
elif mtype == 'chat': # it's type 'chat' elif mtype == 'chat': # it's type 'chat'
if not msg.getTag('body') and chatstate is None: #no <body> if not msg.getTag('body') and chatstate is None: #no <body>