Works for mirc 6.1 or above
;Swear Kicker(Curse Kicker)
/swear -a - to add to the list of swear words.
/swear -d - to remove from the list of swear words.
/swear -c - to clear the list of swear words.
alias swear {
if !$isid {
if $1 == -a { set %swear.list $addtok(%swear.list,$2,32) }
elseif $1 == -d { set %swear.list $deltok(%swear.list,$findtok(%swear.list,$2,1,32),32) }
elseif $1 == -c { unset %swear.list }
}
else { return %swear.list }
}
on *:text:*:#:{
if $istok($swear,$1-,32) { kick $chan $nick no swearing thanks. }
}