mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-29 22:42:09 -08:00
beef up whois
This commit is contained in:
parent
bd3ca4ae47
commit
9a5f21e78c
3 changed files with 45 additions and 6 deletions
|
|
@ -165,6 +165,10 @@ func (client *Client) IdleTime() time.Duration {
|
|||
return time.Since(client.atime)
|
||||
}
|
||||
|
||||
func (client *Client) IdleSeconds() uint64 {
|
||||
return uint64(client.IdleTime().Seconds())
|
||||
}
|
||||
|
||||
func (client *Client) HasNick() bool {
|
||||
return client.nick != ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue