Browse Source

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.
pull/2131/head
Shivaram Lingamneni 2 months ago
parent
commit
cab192e2af
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      irc/server.go

+ 0
- 3
irc/server.go View File

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

Loading…
Cancel
Save