summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2015-12-10 11:27:14 +0300
committerSergey Matveev <stargrave@stargrave.org>2015-12-10 11:27:14 +0300
commita9659b7444536575024b0814bf1268b5f7b03f50 (patch)
treeb80e562bcfbcbd44ec6aeb6659beb5c466b2414d
parent7770e09e68f8dd0991ecd5a32383a89ac3e50857 (diff)
downloadgoircd-a9659b7444536575024b0814bf1268b5f7b03f50.tar.xz
Fix receive timestamp setting
-rw-r--r--daemon.go6
1 files changed, 3 insertions, 3 deletions
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
- }
}
}