mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 17:58:15 -07:00
eliminate client.Realname() getter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user