Message timestamping is done when the message arrive, not when it is parsed
This commit is contained in:
parent
4892f8d9fa
commit
f5166aca16
3 changed files with 6 additions and 6 deletions
2
bot.py
2
bot.py
|
@ -139,7 +139,7 @@ class Bot:
|
|||
|
||||
def receive_message(self, srv, raw_msg, private = False):
|
||||
"""Queued the message for treatment"""
|
||||
self.msg_queue.put_nowait((srv, raw_msg, private))
|
||||
self.msg_queue.put_nowait((srv, raw_msg, datetime.now(), private))
|
||||
|
||||
# Launch a new thread if necessary
|
||||
if self.msg_queue.qsize() > self.msg_thrd_size:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue