1
0
Fork 0
forked from External/ergo
This commit is contained in:
Shivaram Lingamneni 2020-07-17 01:55:13 -04:00
parent a99c893f9b
commit 93530ae397
5 changed files with 18 additions and 12 deletions

View file

@ -185,9 +185,9 @@ func (client *Client) Hostname() string {
return client.hostname
}
func (client *Client) Away() (result bool) {
func (client *Client) Away() (result bool, message string) {
client.stateMutex.Lock()
result = client.away
result, message = client.away, client.awayMessage
client.stateMutex.Unlock()
return
}