Message timestamping is done when the message arrive, not when it is parsed

This commit is contained in:
Némunaire 2012-08-26 18:00:56 +02:00
parent 4892f8d9fa
commit f5166aca16
3 changed files with 6 additions and 6 deletions

View file

@ -41,9 +41,9 @@ def save():
class Message:
def __init__ (self, srv, line, private = False):
def __init__ (self, srv, line, timestamp, private = False):
self.srv = srv
self.time = datetime.now ()
self.time = timestamp
self.channel = None
self.content = b''
self.ctcp = False