beef up whois

This commit is contained in:
Jeremy Latt 2014-02-17 19:08:57 -08:00
parent bd3ca4ae47
commit 9a5f21e78c
3 changed files with 45 additions and 6 deletions

View file

@ -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 != ""
}