From 42a25300c453ec8f63e81842e527fa4178f02100 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 4 Jul 2017 23:25:49 -0700 Subject: [PATCH] ngircd: don't leave user TS none in spawn_client --- protocols/ngircd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/ngircd.py b/protocols/ngircd.py index 8dcbf50..eeaecf7 100644 --- a/protocols/ngircd.py +++ b/protocols/ngircd.py @@ -61,7 +61,7 @@ class NgIRCdProtocol(IRCS2SProtocol): realname = realname or conf.conf['bot']['realname'] uid = self.uidgen.next_uid(prefix=nick) - userobj = self.users[uid] = User(nick, ts, uid, server, ident=ident, host=host, realname=realname, + userobj = self.users[uid] = User(nick, ts or int(time.time()), uid, server, ident=ident, host=host, realname=realname, manipulatable=manipulatable, opertype=opertype) self.apply_modes(uid, modes)