View Single Post
Old 04-03-2006, 20:43   #4 (permalink)
arcade
TCB & Ratings projects Member, #Mythic representative
 
arcade's Avatar
 
Join Date: Jun 2004
Location: In fatza calculatorului!!
Age: 19
Posts: 218
Rep Power: 37
arcade is on a distinguished road
Send a message via Yahoo to arcade
Default

uite codul de care ai nevoie:
Code:
proc anti:swear {nick uhost hand chan text} {     
       global username badwords punished            
       
       if {![botisop $chan] || ![channel get $chan antiswear] || [check:fo:ch $hand $chan $nick]} {return 0}   
       set swears "$badwords"
       set how "swear"
       set why "antiswear"
       foreach swearword [string tolower $swears] {  
          if {[string match -nocase "* $swearword *" " $text "]} {
	newchanban $chan [a:maskhost -host $uhost] $username "channel $why protection enabled (Time:[channel get $chan ban-time])" [channel get $chan ban-time] sticky
	putcmdlog "<<${username}>> $why protection -- $chan ${nick}!${uhost}"  }        } 
}
}
}

set badwords {
"fuck" 
"ass" 
"whore" 
"shit" 
"cunt" 
"suck" 
"dick" 
"suck" 
"penis" 
"bitch" 
"asshole" 
"fucker" 
"fuckin`" 
"fucking" 
"masturbate"
"sucker"
}

bind pubm -|- *             anti:swear
vezi k s-ar putea sa fie o } in plus verifici si imi spui
arcade is offline   Reply With Quote