Yes, but i need to have properties about contatcs, so it is good the way it put it. But i have some problem with this code :
code:
var Color1 = null;
var Color2 = null;
var MsgOutput = null;
function Replace_Text(Color1, Color2, Message, MsgOutput)
{
if (Message.charAt(0) == '/')
{
return Message;
}
Debug.Trace("Vérification du premier caractère du message terminée");
MsgOuput = "[c=" + Color1 + "]" + Message + "[/c=" + Color2 + "]";
Debug.Trace("Remplacement du message éffectué");
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
var Contact = ChatWnd.Contacts;
var Num = new Enumerator(Contact);
Debug.Trace("Enumération des Contacts Terminée");
MsgOutput = Message;
if (Num < 2)
{
Debug.Trace("Vérification du nombre de contacts Terminée");
MsgOutput = Message
if ( Contact.EMail == 'xxx@yyy.zzz') {
Debug.Trace("Vérification de l'Email du contact terminée");
Color1 = "#000000";
Color2 = "#FFFFFF";
Debug.Trace("Définition des couleurs Terminée");
Replace_Text(Color1, Color2, Message, MsgOutput);
}
}
return MsgOutput;
Debug.Trace("Envoi du Message");
}
It goes no further than : Debug.Trace("Enumération des Contacts Terminée");
Does anyone see why?
P.S. : traces are in french, because i'm french