This script is for bad words in the channel.
I want him to banned the person out of the room
when he says badword, but I want someone
else to say banned
to banned the bad person out.
Example :
me user1 op in the channel
user2 : bad word(swear)
user3 : !banned
user1 banned user2 out the channel
on @*:Text:*:*:{
if ($nick !isop #) || ($nick !ishop #) {
if ($read(badwords.txt,rn,/^(\Q $+ $replacecs($2-,\E,\E\\E\Q,$chr(32),\E|\Q) $+ \E)$/iS)) {
var %s = $+(%,$cid,$site,#)
inc -u3600 $(%s)
if ( $1 == !banned ) {
ban -ku900 # $nick 2 out the channel
halt
}
}
}
}
what missing?