forked from External/ergo
Force help entries for every ChanServ command as well
This commit is contained in:
parent
1c636aaec6
commit
5cbd4d1de2
1 changed files with 8 additions and 0 deletions
|
|
@ -175,6 +175,14 @@ func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
|
||||||
return nil, err
|
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.
|
// confirm help entries for NickServ exist.
|
||||||
// this forces people to write help entries for every single NS command.
|
// this forces people to write help entries for every single NS command.
|
||||||
for commandName, commandInfo := range nickservCommands {
|
for commandName, commandInfo := range nickservCommands {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue