Skip to content

Commit

Permalink
Merge pull request #2131 from slingamn/issue2130
Browse files Browse the repository at this point in the history
fix #2130
  • Loading branch information
slingamn committed Feb 25, 2024
2 parents c67835c + 78f3426 commit 432d4ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions irc/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ func (server *Server) Config() (config *Config) {
return server.config.Load()
}

func (server *Server) ChannelRegistrationEnabled() bool {
return server.Config().Channels.Registration.Enabled
}

func (server *Server) GetOperator(name string) (oper *Oper) {
name, err := CasefoldName(name)
if err != nil {
Expand Down
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 432d4ea

Please sign in to comment.