quote:
Originally posted by phalanxii
Ah yeah, sorry about that. I forgot about the status being 0 when you're not signed (so the code isn't executed). What I actually meant was:code:
function OnEvent_Initialize(MessengerStart) {
if(!MessengerStart) {
OnEvent_SigninReady(Messenger.MyEmail); //Call the event like a normal function
}
}
function OnEvent_SigninReady(Email) {
//Original code for OnEvent_Initialize goes here
}
Cookie's code works exactly the same, so it doesn't really matter.
no it isn't the same and doesn't work the same....
Open Messenger, before signing in, restart the script. You'll see that with your method (
if(!MessengerStart)) your script will end in an error, while mine (
if(Messenger.MyStatus > 0)) doesn't.
quote:
Originally posted by Mattike
(...)
So, the only way it should work is by using both !MessengerStart and Messenger.MyStatus > 0.
!MessengerStart isn't needed at all... see
my previous post which explains all the possible events in a pseudo boolean algebra truth table. Look at the sequence of events and look at the states of things, you'll see that to have a defined email, the only thing to check is the status being >0.
many script make this error (in fact I think I have made some scripts myself with that very same error... :/... me goes to check)...