Ignore message from room in which we are not. Fixes #1325
This commit is contained in:
parent
0650f0e493
commit
c6dadfbab2
1 changed files with 3 additions and 0 deletions
|
@ -429,6 +429,9 @@ class Connection:
|
||||||
else:
|
else:
|
||||||
if not msg.getTag('body'): #no <body>
|
if not msg.getTag('body'): #no <body>
|
||||||
return
|
return
|
||||||
|
# Ignore message from room in which we are not
|
||||||
|
if not self.last_history_line.has_key(jid):
|
||||||
|
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 not\
|
||||||
int(float(time.mktime(tim))) <= self.last_history_line[jid]:
|
int(float(time.mktime(tim))) <= self.last_history_line[jid]:
|
||||||
|
|
Loading…
Add table
Reference in a new issue