forked from External/ergo
refactor monitor and /oper implementations
This commit is contained in:
parent
5e9767c46d
commit
26686d7e86
5 changed files with 185 additions and 173 deletions
|
|
@ -20,3 +20,21 @@ func (server *Server) getPassword() []byte {
|
|||
defer server.configurableStateMutex.RUnlock()
|
||||
return server.password
|
||||
}
|
||||
|
||||
func (client *Client) getNick() string {
|
||||
client.stateMutex.RLock()
|
||||
defer client.stateMutex.RUnlock()
|
||||
return client.nick
|
||||
}
|
||||
|
||||
func (client *Client) getNickMaskString() string {
|
||||
client.stateMutex.RLock()
|
||||
defer client.stateMutex.RUnlock()
|
||||
return client.nickMaskString
|
||||
}
|
||||
|
||||
func (client *Client) getNickCasefolded() string {
|
||||
client.stateMutex.RLock()
|
||||
defer client.stateMutex.RUnlock()
|
||||
return client.nickCasefolded
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue