Mattike has got the right idea, but if I'm not mistaken, shouldn't it be:
code:
function OnEvent_Initialize(MessengerStart) {
if(!MessengerStart && Messenger.MyStatus > 1) {
OnEvent_SigninReady(Messenger.MyEmail); //Call the event like a normal function
}
}
function OnEvent_SigninReady(Email) {
//Original code for OnEvent_Initialize goes here
}
That way,
OnEvent_SigninReady executes when a) the script is enabled when Messenger is signed in and b) when you sign in to Messenger. Also, if you don't need any details from contacts, you can use
OnEvent_Signin instead, as this will give the same result, but a lot earlier.