mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #2130
We load registered channels unconditionally; reloading them again on rehash is incorrect. This caused buggy behavior when channel registration was disabled in the config, but some registered channels were already loaded.
This commit is contained in:
parent
c67835ce5c
commit
cab192e2af
1 changed files with 0 additions and 3 deletions
|
|
@ -702,9 +702,6 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
if !oldConfig.Accounts.NickReservation.Enabled {
|
||||
server.accounts.buildNickToAccountIndex(config)
|
||||
}
|
||||
if !oldConfig.Channels.Registration.Enabled {
|
||||
server.channels.loadRegisteredChannels(config)
|
||||
}
|
||||
// resize history buffers as needed
|
||||
if config.historyChangedFrom(oldConfig) {
|
||||
for _, channel := range server.channels.Channels() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue