Changement de fond

Résolu
Camanche Messages postés 149 Date d'inscription jeudi 23 octobre 2003 Statut Membre Dernière intervention 17 novembre 2007 - 20 déc. 2004 à 05:25
winwarrior Messages postés 654 Date d'inscription jeudi 3 avril 2003 Statut Membre Dernière intervention 10 février 2009 - 20 déc. 2004 à 18:15
Bonjour, j'ai fait ça:

ON *:JOIN:#: if ($nick == $me) { /background # scripts\b1.jpg }
ON *:voice:#: if ($vnick == $me) { /background # scripts\b2.jpg }
ON *:devoice:#: if ($vnick == $me) { /background # scripts\b1.jpg }
ON *:OP:#: if ($opnick == $me) { /background # scripts\b3.jpg }
ON *:DEOP:#:{
if $me isvoice # { background # scripts\b2.jpg }
elseif $opnick == $me { background # scripts\b1.jpg }
}

Ce qui permet de changer les fonds du salon quand on est voice ou op.
Mais mon problème, c'est que si j'arrive sur un salon où il n'y a personne ni aucun bot, je passe op mais le fond du salon ne change pas.

Avez-vous une idée?

Camanche

3 réponses

cs_PaDa Messages postés 1804 Date d'inscription mardi 15 juillet 2003 Statut Membre Dernière intervention 22 septembre 2009 5
20 déc. 2004 à 16:57
en fait je pense pas, $nick(#,0) vaut toujours 1 dans un on join de toi, puisque la liste de /names du salon n'a pas encore été récupérée.

je ferais plutot ca :
 raw 366:*: background $2 $iif($me isop $2,scripts\b3.jpg,scripts\b1.jpg) 


PaDa
3
winwarrior Messages postés 654 Date d'inscription jeudi 3 avril 2003 Statut Membre Dernière intervention 10 février 2009 1
20 déc. 2004 à 08:53
éssai avec ça:

ON *:JOIN:#:{
 if ($nick == $me) {
if ($nick(#,0) == 1) background # scripts\b3.jpg
else background # scripts\b1.jpg
}
}

je pense que ça devrait marcher :p

win

[irc://irc.chatown.org/warriorhouse irc.chatown.org]
0
winwarrior Messages postés 654 Date d'inscription jeudi 3 avril 2003 Statut Membre Dernière intervention 10 février 2009 1
20 déc. 2004 à 18:15
Autant pour moi :)

win

[irc://irc.chatown.org/warriorhouse irc.chatown.org]
0
Rejoignez-nous