This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

newchanban

Old posts that have not been replied to for several years.
Locked
h
herrmy

Post by herrmy »

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
}
}
Locked