forked from External/ergo
eliminate client.Realname() getter
This commit is contained in:
parent
cf153c2b09
commit
1de166bccb
4 changed files with 14 additions and 18 deletions
|
|
@ -187,12 +187,6 @@ func (client *Client) Hostname() string {
|
|||
return client.hostname
|
||||
}
|
||||
|
||||
func (client *Client) Realname() string {
|
||||
client.stateMutex.RLock()
|
||||
defer client.stateMutex.RUnlock()
|
||||
return client.realname
|
||||
}
|
||||
|
||||
func (client *Client) Away() (result bool) {
|
||||
client.stateMutex.Lock()
|
||||
result = client.away
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue