on @1:TEXT:*:#botsparadise: {
if ($nick !isop $chan) {
tokenize 32 $strip($1-)
var %i = 1
while (%i <= $0) {
.!echo -q $read($scriptdirswearwords.txt,s,$eval($+($,%i),2))
if ($readn) { var %match = $addtok(%match,$eval($+($,%i),2),44) }
inc %i
}
if (%match) {
if ($hget(SwearKicked) == $null) { hmake SwearKicked 100 }
if ($hfind(SwearKicked,$fulladdress,1,W)) {
var %item = $ifmatch , %val = $hget(SwearKicked,%item)
if (%val > 5) { ban $chan $nick 2 | kick $chan $nick You were warned %val times! Now you are banned! }
else { kick $chan $nick You were warned %val time $+ $iif(%val > 1,s) $+ ! }
hinc -u7200 SwearKicked %item 1
}
else {
hadd -u7200 SwearKicked $+(*!*,$address) 1
msg $chan Do not use: < $+ $nick $+ > " $+ %match $+ " You will be kicked if it happens again
}
}
}
}