From 5cbd4d1de291afc5d8136b2cdedd0ef0f33a3689 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 1 Apr 2018 11:54:49 +1000 Subject: [PATCH] Force help entries for every ChanServ command as well --- irc/server.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/irc/server.go b/irc/server.go index 914f8321..d45fa762 100644 --- a/irc/server.go +++ b/irc/server.go @@ -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 {