Only log for GC Message for one account

This commit is contained in:
Philipp Hörist 2017-09-07 16:42:51 +02:00
parent 1a0b7ee163
commit 995ade8a11
1 changed files with 2 additions and 0 deletions

View File

@ -1155,6 +1155,8 @@ class ConnectionHandlersBase:
return True
def _nec_gc_message_received(self, obj):
if obj.conn.name != self.name:
return
if app.config.should_log(obj.conn.name, obj.jid) and not \
obj.timestamp < obj.conn.last_history_time[obj.jid] and obj.msgtxt and \
obj.nick: