urs:
code:
OnEvent_MyStatusChange(nNewStatus){
if(nNewStatus == 5){
oldpsm = Messenger.MyPersonalMessage;
Messenger.MyPersonalMessage = "I'll be back in a jiffy!";
}
else if(Messenger.MyStatus == 5){
Messenger.MyPersonalMessage = oldpsm;
}
}
mine:
code:
var oldpsm;
function OnEvent_MyStatusChange(nNewStatus){
if(nNewStatus == 5){
oldpsm = Messenger.MyPersonalMessage;
Messenger.MyPersonalMessage = "I'll be back in a jiffy!";
}
else if(nNewStatus != 5 && oldpsm != null){
Messenger.MyPersonalMessage = oldpsm;
oldpsm = null;
}
}
the higblighted bits will make it work especially the != not == or it would do it at the same time and wouldnt work and you should make oldpsm a global variable