diff --git a/irc/config.go b/irc/config.go index c01bffca..42be0a1d 100644 --- a/irc/config.go +++ b/irc/config.go @@ -827,11 +827,6 @@ func LoadConfig(filename string) (config *Config, err error) { config.loadMOTD() - err = config.generateISupport() - if err != nil { - return nil, err - } - // in the current implementation, we disable history by creating a history buffer // with zero capacity. but the `enabled` config option MUST be respected regardless // of this detail @@ -847,5 +842,11 @@ func LoadConfig(filename string) (config *Config, err error) { } } + // now that all postprocessing is complete, regenerate ISUPPORT: + err = config.generateISupport() + if err != nil { + return nil, err + } + return config, nil }