]> Cypherpunks.ru repositories - goircd.git/blobdiff - daemon.go
Raise copyright years
[goircd.git] / daemon.go
index 1af9712616a383ad1a3b869bf3143e85756dd037..b5c3e56f3e97ad6f933436f55b6ad89eb68f3e3c 100644 (file)
--- a/daemon.go
+++ b/daemon.go
@@ -1,6 +1,6 @@
 /*
 goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2015 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -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
-               }
        }
 }