strip out the +a away mode

This commit is contained in:
Shivaram Lingamneni 2019-04-28 15:10:03 -04:00
parent e387b7b328
commit 51465b4a3a
8 changed files with 24 additions and 13 deletions

View file

@ -141,6 +141,22 @@ func (client *Client) Realname() string {
return client.realname
}
func (client *Client) Away() (result bool) {
client.stateMutex.Lock()
result = client.away
client.stateMutex.Unlock()
return
}
func (client *Client) SetAway(away bool, awayMessage string) (changed bool) {
client.stateMutex.Lock()
changed = away != client.away
client.away = away
client.awayMessage = awayMessage
client.stateMutex.Unlock()
return
}
// uniqueIdentifiers returns the strings for which the server enforces per-client
// uniqueness/ownership; no two clients can have colliding casefolded nicks or
// skeletons.