Skip to content

Commit

Permalink
fix #2130
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slingamn committed Feb 25, 2024
1 parent c67835c commit cab192e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions irc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cab192e

Please sign in to comment.