1
0
Fork 0
forked from External/ergo

refactor /HELP for services

1. DRY "banner" descriptions of each services
2. `/HELP NICKSERV` now refers the user to `/NICKSERV HELP`, etc.
3. Fix double translation of `textGenerator` output
This commit is contained in:
Shivaram Lingamneni 2019-07-02 12:36:32 -04:00
parent 7761323f01
commit 1c583d775c
6 changed files with 35 additions and 61 deletions

View file

@ -1091,7 +1091,7 @@ Get an explanation of <argument>, or "index" for a list of help topics.`), rb)
if exists && (!helpHandler.oper || (helpHandler.oper && client.HasMode(modes.Operator))) {
if helpHandler.textGenerator != nil {
client.sendHelp(strings.ToUpper(argument), client.t(helpHandler.textGenerator(client)), rb)
client.sendHelp(strings.ToUpper(argument), helpHandler.textGenerator(client), rb)
} else {
client.sendHelp(strings.ToUpper(argument), client.t(helpHandler.text), rb)
}