Fix missing appendServiceCommandSetHelp argument

git-svn-id: file:///srv/svn/repo/suika/trunk@335 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2020-06-10 14:34:45 +00:00
parent c3141986b1
commit 3b3d7c4f5a

View File

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