]> Cypherpunks.ru repositories - goircd.git/commitdiff
Fix receive timestamp setting
authorSergey Matveev <stargrave@stargrave.org>
Thu, 10 Dec 2015 08:27:14 +0000 (11:27 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 10 Dec 2015 08:27:14 +0000 (11:27 +0300)
daemon.go

index 1af9712616a383ad1a3b869bf3143e85756dd037..55491d79a83e7b2bbdb3b7caf0e61332d82686b3 100644 (file)
--- 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
-               }
        }
 }