mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
idle/quit timeout
This commit is contained in:
parent
8a90634c0a
commit
133b91b9f0
4 changed files with 47 additions and 8 deletions
|
|
@ -47,7 +47,8 @@ func (server *Server) receiveCommands(commands <-chan Command) {
|
|||
log.Printf("%s → %s : %s", command.Client(), server, command)
|
||||
}
|
||||
client := command.Client()
|
||||
client.atime = time.Now()
|
||||
client.Touch()
|
||||
|
||||
if !client.serverPass {
|
||||
if server.password == "" {
|
||||
client.serverPass = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue