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:
parent
7761323f01
commit
1c583d775c
6 changed files with 35 additions and 61 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue