fix pyramid replying with the right error message

This commit is contained in:
lyx0 2021-10-15 18:25:17 +02:00
parent 0ff2b74239
commit 23347ac85f

View file

@ -111,10 +111,8 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
case "pyramid": case "pyramid":
if msgLen != 3 { if msgLen != 3 {
twitchClient.Say(message.Channel, "Usage: ()pyramid [size] [emote]") twitchClient.Say(message.Channel, "Usage: ()pyramid [size] [emote]")
return
} else if utils.ElevatedPrivsMessage(message) { } else if utils.ElevatedPrivsMessage(message) {
commands.Pyramid(message.Channel, cmdParams[1], cmdParams[2], twitchClient) commands.Pyramid(message.Channel, cmdParams[1], cmdParams[2], twitchClient)
return
} else { } else {
twitchClient.Say(message.Channel, "Pleb's can't pyramid FeelsBadMan") twitchClient.Say(message.Channel, "Pleb's can't pyramid FeelsBadMan")
} }