forked from External/ergo
implement fakelag (#189)
This commit is contained in:
parent
e3e714059c
commit
1bf5e2a7c8
9 changed files with 293 additions and 19 deletions
|
|
@ -59,7 +59,19 @@ func (server *Server) ChannelRegistrationEnabled() bool {
|
|||
func (server *Server) AccountConfig() *AccountConfig {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
return server.accountConfig
|
||||
if server.config == nil {
|
||||
return nil
|
||||
}
|
||||
return &server.config.Accounts
|
||||
}
|
||||
|
||||
func (server *Server) FakelagConfig() *FakelagConfig {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
if server.config == nil {
|
||||
return nil
|
||||
}
|
||||
return &server.config.Fakelag
|
||||
}
|
||||
|
||||
func (client *Client) Nick() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue