Actualy all emo's don't work alone because they get split up, for example
gets split up to : and P. If I knew how to script beter I'd do that if it starts with a " : " the script woulden't effect the first two characters. But now I'm still busy playing with it so that it only runs on the emails I choose so that people in my list that don't have plus won't mad at me for using colors
.
Edit: I played around with Ezera's email verification code found here : "
http://shoutbox.menthix.net/showthread.php?tid=61888 "
And got this at the end:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
if (Contacts.Count == 1)
{
for (;!e.atEnd();e.moveNext())
{
var Contact = e.item();
switch (Contact.Email)
{
case "email1@hotmail.com":
run(ChatWnd, Message);
break;
case "email2@hotmail.com":
run(ChatWnd, Message);
break;
}
}
}
}
function run(ChatWnd, Message)
{
if (Message.substr(0,1) == "/")
{
return Message;
}
else
{
return "[c=4]" + Message.substr(0,(Message.length/2)) + "[/c=1][c=1]" + Message.substr((Message.length/2)) + "[/c=4]";
{
}
If someone could please help me debug it, I just cant understand why it's not working
.