mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-29 20:59:27 -07:00
commands: Timeout unregistered clients
This commit is contained in:
@@ -41,7 +41,8 @@ func (cmd *Command) Run(server *Server, client *Client, msg ircmsg.IrcMessage) b
|
||||
if !cmd.leaveClientActive {
|
||||
client.Active()
|
||||
}
|
||||
if !cmd.leaveClientIdle {
|
||||
// only touch client if they're registered so that unregistered clients timeout appropriately
|
||||
if client.registered && !cmd.leaveClientIdle {
|
||||
client.Touch()
|
||||
}
|
||||
exiting := cmd.handler(server, client, msg)
|
||||
|
||||
Reference in New Issue
Block a user