forked from External/ergo
add two getters
This commit is contained in:
parent
e540fde816
commit
7ccb485b50
2 changed files with 14 additions and 6 deletions
|
|
@ -23,6 +23,18 @@ func (server *Server) getPassword() []byte {
|
|||
return server.password
|
||||
}
|
||||
|
||||
func (server *Server) ProxyAllowedFrom() []string {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
return server.proxyAllowedFrom
|
||||
}
|
||||
|
||||
func (server *Server) WebIRCConfig() []webircConfig {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
return server.webirc
|
||||
}
|
||||
|
||||
func (client *Client) getNick() string {
|
||||
client.stateMutex.RLock()
|
||||
defer client.stateMutex.RUnlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue