me and my friend were working on a script with mIRC to blacklist words out of a twitch chat you would be banned for using them. we came up with a code like this.

1:connect:{ /TWITCHCLIENT 3 }

on *:TEXT:*!blacklist add*:#dimmu_borgir75: {
if ($nick isop #) {
set %blacklist. $+ $3 $+ . $+ $chan On
msg # $3 Has been added to my blacklist, anyone using $3 will be timed out for 10 minutes.
}
else {
msg # Sorry $nick $+ , you do not have permission to add words to the blacklist
}
}

on *:TEXT:*!blacklist del*:#dimmu_borgir75: {
if ($nick isop #) {
unset %blacklist. $+ $3 $+ . $+ $chan On
msg # $3 Has been removed from the blacklist
}
else {
msg # Sorry $nick $+ , you do not have permission to remove words from my blacklist
}
}

on *:TEXT:**:#dimmu_borgir75: {
if ($nick isop #) return
var %i = 1
while (%i <= $0) {
if ($($+(%,blacklist.,$gettok($1-,%i,32),.,#),2)) {
msg # $nick --> Do not use Blacklisted Words. (Timeout)
msg # .timeout $nick 600
break
}
inc %i
}
}

the problem his works adding words and banning people but mine keeps repeating i dont have permission to add words.