Un truc strange avec les if dans les raw

Chuck512 Messages postés 41 Date d'inscription samedi 9 octobre 2004 Statut Membre Dernière intervention 9 septembre 2005 - 7 mai 2005 à 14:23
Chuck512 Messages postés 41 Date d'inscription samedi 9 octobre 2004 Statut Membre Dernière intervention 9 septembre 2005 - 8 mai 2005 à 01:33
J'aimerais savoir si c normal ou si ya une astuce à connaitre:

Ce raw est specifique au Network Quakenet !!

Je peux faire:

raw 354:*:if ($3 !%gwt.auth*) halt | if ($3 %gwt.auth*) set %gwt.authok %gwt.authok $+ $2 $+ $chr(44)



le %gwt.auth* ca fonctionne niquel !!



Mais par contre je suis obligé de faire:

raw 354:*:if (($3 isin %gwt.auth1) || ($3 isin %gwt.auth2) || ($3 isin
%gwt.auth3) || ($3 isin %gwt.auth4) || ($3 isin %gwt.auth5) || ($3 isin
%gwt.auth6) || ($3 isin %gwt.auth7) || ($3 isin %gwt.auth8) || ($3 isin
%gwt.auth9) || ($3 isin %gwt.auth10) || ($3 isin %gwt.auth11) || ($3
isin %gwt.auth12) || ($3 isin %gwt.auth13) || ($3 isin %gwt.auth14) ||
($3 isin %gwt.auth15) || ($3 isin %gwt.auth16) || ($3 isin %gwt.auth17)
|| ($3 isin %gwt.auth18) || ($3 isin %gwt.auth19)) set %gwt.authok
%gwt.authok $+ $2 $+ $chr(44)



Dans ce cas le %gwt.auth* ne fonctionne pas !!

6 réponses

Chuck512 Messages postés 41 Date d'inscription samedi 9 octobre 2004 Statut Membre Dernière intervention 9 septembre 2005
7 mai 2005 à 14:31
C'est pas clair on a l'impression que c'est la meme chose :]

Je vous copie ma source entierement :]

C'est un script de verification d'auth pour quakenet:



;Verification d'AUTH



on *:JOIN:#+gR+private+:who $nick n%na

raw 354:*:if (($3 isin %gwt.auth1) || ($3 isin %gwt.auth2) || ($3 isin
%gwt.auth3) || ($3 isin %gwt.auth4) || ($3 isin %gwt.auth5) || ($3 isin
%gwt.auth6) || ($3 isin %gwt.auth7) || ($3 isin %gwt.auth8) || ($3 isin
%gwt.auth9) || ($3 isin %gwt.auth10) || ($3 isin %gwt.auth11) || ($3
isin %gwt.auth12) || ($3 isin %gwt.auth13) || ($3 isin %gwt.auth14) ||
($3 isin %gwt.auth15) || ($3 isin %gwt.auth16) || ($3 isin %gwt.auth17)
|| ($3 isin %gwt.auth18) || ($3 isin %gwt.auth19)) set %gwt.authok
%gwt.authok $+ $2 $+ $chr(44)



on 1:PART:#+gR+private+:set %gwt.authok $remove(%gwt.authok,$nick $+ $chr(44))



on 1:NICK:set %gwt.authok $remove(%gwt.authok,$nick $+ $chr(44)) | who $newnick n%na

raw 354:*:if ($3 !%gwt.auth*) halt | if ($3 %gwt.auth*) set %gwt.authok %gwt.authok $+ $2 $+ $chr(44)



on 1:QUIT:set %gwt.authok $remove(%gwt.authok,$nick $+ $chr(44))



Voila c'est plus clair la je penses !!
0
cs_KiNdErMaXi Messages postés 1052 Date d'inscription samedi 10 juillet 2004 Statut Membre Dernière intervention 30 novembre 2009 2
7 mai 2005 à 14:56
faut faire une while :

raw 354:*:{

var %a 1
while (%a <= 19) {
if (($3 isin %gwt.auth $+ %a ) { set %gwt.authok %gwt.authok $+ $2 $+ $chr(44) }

inc %a
}
}

essaye ca mais je te garanti rien

http://kinder-irc.site.voila.fr/kinder_banniere.jpg
0
cs_KiNdErMaXi Messages postés 1052 Date d'inscription samedi 10 juillet 2004 Statut Membre Dernière intervention 30 novembre 2009 2
7 mai 2005 à 14:57
petite erreur désolé, ca donne :

raw 354:*:{
var %a 1
while (%a <= 19) {
if ($3 isin %gwt.auth $+ %a ) { set %gwt.authok %gwt.authok $+ $2 $+ $chr(44) }
inc %a
}
}

oublie le post précédent ;)


http://kinder-irc.site.voila.fr/kinder_banniere.jpg
0
MaX_62 Messages postés 879 Date d'inscription vendredi 22 octobre 2004 Statut Membre Dernière intervention 29 juin 2007
7 mai 2005 à 16:12
if ($3 isin %gwt.auth $+ %a )
C'est pas plutot ça ? : if ($3 = = %gwt.auth $+ %a )

- =[MaX_62]=-
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Chuck512 Messages postés 41 Date d'inscription samedi 9 octobre 2004 Statut Membre Dernière intervention 9 septembre 2005
8 mai 2005 à 01:16
Pour Kinder:

Pas bon, meme qd je suis pas AUTH ca s'ajoutes dans la variable %gwt.authok




Pour MaX, non c'est bien un isin, bizarrement avec du == ca marche pas
0
Chuck512 Messages postés 41 Date d'inscription samedi 9 octobre 2004 Statut Membre Dernière intervention 9 septembre 2005
8 mai 2005 à 01:33
J'ai pas tester jusqu'au bout en +:



Quand je suis pas Auth ca s'ajoutes dans la variable !!

Et quand je suis Auth ca s'ajoutes pas !!



C'est vraiment trop louche !!!
0
Rejoignez-nous