Fix receive timestamp setting

This commit is contained in:
Sergey Matveev 2015-12-10 11:27:14 +03:00 committed by User Mue
parent 61e337b083
commit 8fd97af456
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
}
}