i have i little script that scans for bad words, if some user say one he/she will be banned the problem is that the bot kicks the user with reason (banned) and not with the set reason
proc bw_pubm {nick uhost hand chan text} {
regsub "^.*@" $uhost "*!*@" hostmask
if {[bad_words_test $text]} {
global botnick watchchan reason
if {$chan != $watchchan} {return 0}
if {$nick == $botnick} {return 0}
if {[isop $nick $chan]} {return 0} {
newchanban $chan $hostmask $botnick $reason 15
}
return 1
}
}