mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1198
This commit is contained in:
parent
a99c893f9b
commit
93530ae397
5 changed files with 18 additions and 12 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue