From: Sergey Matveev Date: Thu, 10 Dec 2015 08:27:14 +0000 (+0300) Subject: Fix receive timestamp setting X-Git-Tag: 1.4~3 X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=commitdiff_plain;h=a9659b7444536575024b0814bf1268b5f7b03f50 Fix receive timestamp setting --- diff --git a/daemon.go b/daemon.go index 1af9712..55491d7 100644 --- a/daemon.go +++ b/daemon.go @@ -346,6 +346,9 @@ func Processor(events chan ClientEvent, finished chan struct{}) { ClientRegister(client, cmd, cols) continue } + if client != nil { + client.recvTimestamp = now + } switch cmd { case "AWAY": if len(cols) == 1 { @@ -514,8 +517,5 @@ func Processor(events chan ClientEvent, finished chan struct{}) { client.ReplyNicknamed("421", cmd, "Unknown command") } } - if client != nil { - client.recvTimestamp = now - } } }