on @+1:TEXT:*:#: {
if ($nick isin %baduser) {
var %swearcount = 1
while ($gettok(%swears,0,44) >= %swearcount) {
if ($gettok(%swears,%swearcount,44) isin $1-) {
ban -u300 # $nick 3
kick # $nick No swearing in here, you were warned before!
}
inc %swearcount
}
}
elseif ($nick !isin %baduser) {
var %swearcount = 1
while ($gettok(%swears,0,44) >= %swearcount) {
if ($gettok(%swears,%swearcount,44) isin $1-) {
.notice $nick You have said a bad word on the channel. If you do that again you'll be punished.
set %baduser %baduser $+ $chr(44) $+ $nick
[color:red].timerswear 1 3600 /unset %baduser[/color]
}
inc %swearcount
}
}
}