mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-23 19:41:58 -08:00
HELP: Check topics exist at startup, fix a bug
This commit is contained in:
parent
a7949b6cb4
commit
194fa9af9f
3 changed files with 71 additions and 30 deletions
|
|
@ -114,6 +114,14 @@ func NewServer(configFilename string, config *Config) *Server {
|
|||
return nil
|
||||
}
|
||||
|
||||
// startup check that we have HELP entries for every command
|
||||
for name := range Commands {
|
||||
_, exists := Help[strings.ToLower(name)]
|
||||
if !exists {
|
||||
log.Fatal("Help entry does not exist for ", name)
|
||||
}
|
||||
}
|
||||
|
||||
if config.AuthenticationEnabled {
|
||||
SupportedCapabilities[SASL] = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue