mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-07 05:31:54 -07:00
move ISUPPORT regeneration to the end of config loading
This commit is contained in:
+6
-5
@@ -827,11 +827,6 @@ func LoadConfig(filename string) (config *Config, err error) {
|
|||||||
|
|
||||||
config.loadMOTD()
|
config.loadMOTD()
|
||||||
|
|
||||||
err = config.generateISupport()
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// in the current implementation, we disable history by creating a history buffer
|
// in the current implementation, we disable history by creating a history buffer
|
||||||
// with zero capacity. but the `enabled` config option MUST be respected regardless
|
// with zero capacity. but the `enabled` config option MUST be respected regardless
|
||||||
// of this detail
|
// 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
|
return config, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user