Fix missing appendServiceCommandSetHelp argument

This commit is contained in:
Simon Ser 2020-06-10 16:34:45 +02:00
parent ce37fcc7c2
commit 67f8773320
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -79,7 +79,7 @@ func handleServicePRIVMSG(dc *downstreamConn, text string) {
if cmd.handle == nil {
if len(cmd.children) > 0 {
var l []string
appendServiceCommandSetHelp(cmd.children, words, &l)
appendServiceCommandSetHelp(cmd.children, words, dc.user.Admin, &l)
sendServicePRIVMSG(dc, "available commands: "+strings.Join(l, ", "))
} else {
// Pretend the command does not exist if it has neither children nor handler.