forked from External/ergo
changes to client idle time counting
1. Remove leaveClientIdle (unused) 2. s/leaveClientActive/leaveClientIdle/ 3. make ISON a leaveClientIdle command (some clients send it periodically if a /msg window is left open)
This commit is contained in:
parent
ba2aacaf5b
commit
a4b3fb0e83
2 changed files with 20 additions and 27 deletions
|
|
@ -332,12 +332,6 @@ func (client *Client) Active() {
|
|||
client.atime = time.Now()
|
||||
}
|
||||
|
||||
// Touch marks the client as alive (as it it has a connection to us and we
|
||||
// can receive messages from it).
|
||||
func (client *Client) Touch() {
|
||||
client.idletimer.Touch()
|
||||
}
|
||||
|
||||
// Ping sends the client a PING message.
|
||||
func (client *Client) Ping() {
|
||||
client.Send(nil, "", "PING", client.nick)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue