Reported by eta in #ergo. loadRegisteredChannels does not check the current config value, which is probably correct: even if new channel registration is disallowed, we want to load existing registered channels. However, this case is buggy:
This will unconditionally reload the registered channels and overwrite their entries in the channel manager. I think we can actually just delete this, since we are loading the registered channels unconditionally on startup?
Reported by eta in #ergo.
loadRegisteredChannels
does not check the current config value, which is probably correct: even if new channel registration is disallowed, we want to load existing registered channels. However, this case is buggy:https://github.com/ergochat/ergo/blob/4d9e80fe5be8dcd9892df22247461522974a7c88/irc/server.go#L705-L707
This will unconditionally reload the registered channels and overwrite their entries in the channel manager. I think we can actually just delete this, since we are loading the registered channels unconditionally on startup?