26/01/2009, 16:00
fedora a écrit :merci CrazyCat de ton aide
j'ai commencé comme cela mais pour le reste j'avoue je flanche complet là.
http://tagx.nirc.fr/tagx.php?page=TagX&f...225649.txt
Tout d'abord, ce serait plus pratique si tu mettais tes sources ici avec les balises TCL, ça éviterait qu'on ait à aller d'une page à l'autre.
Ensuite, tu n'as pas dû lire la page sur les binds pour faire:
tcl
bind raw - 311 whois:proxy
proc whois:proxy { nick uhost hand chan ] {
D'autant plus que tes 2 procédures ont le même nom.
Citation :# Syntaxe: bind raw <flags> <keyword> <proc>Donc, il faut faire:
# Procédure: procname <from> <keyword> <text>
tcl
set spamhost "2531986971.fr"
bind raw - 311 whois:answ
proc whois:answ {from kw text} {
if { [string first $::spamhost $text] != -1} {
putlog "Alerte ! $text !"
}
return 0
}