Code: Select all
set bwRun 1
set bwArray() ""
set bwNumber 0
set bwFilename "filename.txt"
set bwChan "#chan"
# SURVEYpub proc
bind pubm - * bwSurveypub
proc bwSurveypub {nick uhost hand channel args} {
global bwChan bwArray bwNumber bwRun passLogo
set channel [string tolower $channel]
if { $bwChan != $channel } {
return 0
}
if { ([isop $nick $bwChan])||([matchattr $nick o|o $bwChan])||([isvoice $nick $bwChan]) } {
return 0
}
set args [join $args]
set args [string tolower $args]
for {set i 0} {$i < $bwNumber} {incr i} {
if { $bwArray($i) != "" } {
set badw [join $bwArray($i)]
set dummy ""
if { [regsub -all "$badw" $args "" dummy] } {
putserv "MODE $channel +b $uhost"
putserv "KICK $bwChan $nick :Badword detected from '$badw' get out!"
}
}
}
return 0
}
Code: Select all
set bwChan "#chan1 #chan2"
What i need is it should work on every channel that i put on set bwChan and also will work in all channel when i leave the set bwChan to """"
Please help me on this thing. Thank you very much.