Преглед на файлове

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 месеца
родител
ревизия
cab192e2af
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0
    3
      irc/server.go

+ 0
- 3
irc/server.go Целия файл

@@ -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…
Отказ
Запис