when i use the OnEvent_ChatWndReceiveMessage function to send a command to my script, fx. "!popup" it runs the code as normal, but if i send the script to a friend and he runs it and write the same command in a chat window to me, then my script run on both computers.. how can i stop that.. ??
some of my code:
quote:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
    if(MessageKind == 1)
    {
if(Message.substr(0,7) == '!popup ') {
    var naam = Origin.substr(0,16);
    if(Message.substr(7) == '') {
        var Text = "You need to post a message after !popup..";
        ChatWnd.SendMessage(Text);
    } else {
        var Text = Message.substr(7);
        ext = MsgPlus.RemoveFormatCodes(Text);
        MsgPlus.DisplayToast("",Text);
    }
}
    }
}