mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-14 19:58:11 -07:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user