cs_nefes
Messages postés15Date d'inscriptionmercredi 7 décembre 2005StatutMembreDernière intervention26 août 2006
-
24 déc. 2005 à 13:04
cs_nefes
Messages postés15Date d'inscriptionmercredi 7 décembre 2005StatutMembreDernière intervention26 août 2006
-
24 déc. 2005 à 20:12
hello,
je debute dans le scripting et j'ai un prob... je voudrais faire un rajout sur un code existant "no spam"...rajouter un repondeur si le pv n'est pas un spam.
code de base :
<OL>
<LI>on *:open:?:{
<LI> var %t 1 , %l $lines(nospam.txt)
<LI> while ( %t <= %l ) {
<LI> if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick }
<LI> inc %t
<LI> }
<LI>}</LI></OL>
mon rajout dans le code :
<OL>
<LI>on *:open:?:{
<LI> var %t 1 , %l $lines(nospam.txt)
<LI> while ( %t <= %l ) {
<LI> if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick }
<LI> else { /msg $nick salut je suis occupe, je te reponds dans 2mn }
<LI> inc %t
<LI> }
<LI>}
</LI></OL>
ca marche quand il y ya un seul mot dans la liste des mots interdits mais des que j'en rajoute d'autres ca marche plus.si quelqu'un peux m'aider ca serait super sympa
Mc_AbBeR
Messages postés301Date d'inscriptionmercredi 15 juin 2005StatutMembreDernière intervention19 février 2007 24 déc. 2005 à 13:18
on *:open:?:{ var %t 1 , %l $lines(nospam.txt)
while ( %t <= %l ) {
if ( $read(nospam.txt,%t) isin $1- ) closemsg
inc %t
else msg $nick salut je suis occupe, je te reponds dans 2mn
}
}
Mc_AbBeR
Messages postés301Date d'inscriptionmercredi 15 juin 2005StatutMembreDernière intervention19 février 2007 24 déc. 2005 à 13:27
Ou sa, jcroix que sa sa marche:
on *:open:?:{var %t 1, %l $lines(nospam.txt)
while (%t <= %l) {
if ($read(nospam.txt,%t) !isin $1-) msg $nick salut je suis occupe, je te reponds dans 2mn
else closemsg
}
}