[ban] Fix Chatcommand matching

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-07-19 22:33:42 +02:00
parent 5b4cf16c01
commit acd542edf1
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -140,7 +140,7 @@ func handleChatCommand(m *irc.Message) error {
return errors.New("ban message does not match required format")
}
if err := botTwitchClient.BanUser(channel, matches[1], 0, matches[3]); err != nil {
if err := botTwitchClient.BanUser(channel, matches[1], 0, matches[2]); err != nil {
return errors.Wrap(err, "executing ban")
}