| View previous topic :: View next topic |
| Author |
Message |
herrmy Guest
|
Posted: Thu Mar 21, 2002 11:28 am Post subject: |
|
|
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
}
}
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|