I cant work out why the following scrip doesnt work:
code:
var on = '0'
function OnEvent_ContactSignin(sEmail)
{
Messenger.OpenChat(sEmail);
on = '1'
}
function OnEvent_ChatWndCreated(ChatWnd)
{
if (on == '1')
{
on = '0'
ChatWnd.SendMessage("Hello (!N) !");
}
}
Its meant to open a chat box with someone as soon as they login and then say Hello.