mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[ban] Fix Chatcommand matching
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5b4cf16c01
commit
acd542edf1
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue