20/03/2011, 17:32
Un petit up, tu peux utiliser une liste..
Code :
set mots {
"fuck"
"merde"
"encul"
}
bind pubm * msg:pub
proc msg:pub {nick uhost handle chan}{
set text [lindex $arg 0]
if {[string match *$mots* $text]=""} {
putserv "NOTICE $nick :Ce mot à été blacklisté."
} else { return 0 }
}