Browse Source

Merge pull request #2131 from slingamn/issue2130

fix #2130
pull/2132/head
Shivaram Lingamneni 2 months ago
parent
commit
432d4ea860
No account linked to committer's email address
2 changed files with 0 additions and 7 deletions
  1. 0
    4
      irc/getters.go
  2. 0
    3
      irc/server.go

+ 0
- 4
irc/getters.go View File

@@ -19,10 +19,6 @@ func (server *Server) Config() (config *Config) {
19 19
 	return server.config.Load()
20 20
 }
21 21
 
22
-func (server *Server) ChannelRegistrationEnabled() bool {
23
-	return server.Config().Channels.Registration.Enabled
24
-}
25
-
26 22
 func (server *Server) GetOperator(name string) (oper *Oper) {
27 23
 	name, err := CasefoldName(name)
28 24
 	if err != nil {

+ 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