mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 10:42:52 +01:00
Force help entries for every ChanServ command as well
This commit is contained in:
parent
1c636aaec6
commit
5cbd4d1de2
@ -175,6 +175,14 @@ func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// confirm help entries for ChanServ exist.
|
||||
// this forces people to write help entries for every single CS command.
|
||||
for commandName, commandInfo := range chanservCommands {
|
||||
if commandInfo.help == "" || commandInfo.helpShort == "" {
|
||||
return nil, fmt.Errorf("Help entry does not exist for ChanServ command %s", commandName)
|
||||
}
|
||||
}
|
||||
|
||||
// confirm help entries for NickServ exist.
|
||||
// this forces people to write help entries for every single NS command.
|
||||
for commandName, commandInfo := range nickservCommands {
|
||||
|
Loading…
Reference in New Issue
Block a user