bot: only provide help for whitelist items

This commit is contained in:
Chris Sexton 2020-10-16 15:53:57 -04:00 committed by Chris Sexton
parent b69990e10f
commit 11224e0a2f
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (b *bot) checkHelp(conn Connector, channel string, parts []string) {
if len(parts) == 1 {
// just print out a list of help topics
topics := "Help topics: about variables"
for name := range b.plugins {
for _, name := range b.GetWhitelist() {
name = pluginNameStem(name)
topics = fmt.Sprintf("%s, %s", topics, name)
}