ta essayé en changeant
par
ton script fonctionne que si une personne dit "oui" ou "non" il doit être kicker ?
j'ai tester le code,il kick bien si une personne écris "oui" ou bien "non" est si une personne écris "ouistiti" le bot ne la pas kické.
Cordialement DnS
tcl
if {[string match *$badword* [string tolower $arg]]} {
par
tcl
if {[string match -nocase "*$badword*" $arg]} {
ton script fonctionne que si une personne dit "oui" ou "non" il doit être kicker ?
j'ai tester le code,il kick bien si une personne écris "oui" ou bien "non" est si une personne écris "ouistiti" le bot ne la pas kické.
tcl
proc pubm_badword {nick uhost hand chan arg} {
global badwords badword_msg badword_chans botnick
if {(([lsearch -exact [string tolower $badword_chans] [string tolower $chan]] != -1) || ($badword_chans == "*")) && (![matchattr $hand b]) && ($nick != $botnick)} {
foreach badword [string tolower $badwords] {
if {[string match -nocase $badword $arg]} {
putserv "KICK $chan $nick :$badword_msg"
return
}
}
}
}
Cordialement DnS
[font=Times New Roman]La différence entre Linux et Windows ,c'est que Linux c'est comme une belle fille , il faut l'apprivoiser , la comprendre , la séduire tandis que Windows , c'est comme une prostitué , il faut payer et surtout bien se protéger.[/font]