3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00

Merge pull request #2131 from slingamn/issue2130

fix #2130
This commit is contained in:
Shivaram Lingamneni 2024-02-25 03:55:54 -05:00 committed by GitHub
commit 432d4ea860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 7 deletions

View File

@ -19,10 +19,6 @@ func (server *Server) Config() (config *Config) {
return server.config.Load() return server.config.Load()
} }
func (server *Server) ChannelRegistrationEnabled() bool {
return server.Config().Channels.Registration.Enabled
}
func (server *Server) GetOperator(name string) (oper *Oper) { func (server *Server) GetOperator(name string) (oper *Oper) {
name, err := CasefoldName(name) name, err := CasefoldName(name)
if err != nil { if err != nil {

View File

@ -702,9 +702,6 @@ func (server *Server) applyConfig(config *Config) (err error) {
if !oldConfig.Accounts.NickReservation.Enabled { if !oldConfig.Accounts.NickReservation.Enabled {
server.accounts.buildNickToAccountIndex(config) server.accounts.buildNickToAccountIndex(config)
} }
if !oldConfig.Channels.Registration.Enabled {
server.channels.loadRegisteredChannels(config)
}
// resize history buffers as needed // resize history buffers as needed
if config.historyChangedFrom(oldConfig) { if config.historyChangedFrom(oldConfig) {
for _, channel := range server.channels.Channels() { for _, channel := range server.channels.Channels() {