From 11224e0a2f12f7d2373ad82e3824878aced4573b Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Fri, 16 Oct 2020 15:53:57 -0400 Subject: [PATCH] bot: only provide help for whitelist items --- bot/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/handlers.go b/bot/handlers.go index a0ac417..1232ec4 100644 --- a/bot/handlers.go +++ b/bot/handlers.go @@ -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) }