code:
/*
*
* This code is only ment as an example to the script.
* It should not be used as it doesn't implement any failsafes for instance
* if the user was already previously blocked you do not want to unblock them.
*
*/
function OnEvent_Initialize(MessengerStart){
for (var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()){
if (e.item().Status === 1) e.item().Blocked = true;
}
}
function OnEvent_ContactSignOut(sEmail) {
Messenger.MyContacts.GetContact(sEmail).Blocked = true;
}
function OnEvent_ContactSignIn(sEmail) {
Messenger.MyContacts.GetContact(sEmail).Blocked = false;
}
I just tried it here and everything worked fine including the Right Click menu displaying the proper Block/Unblock string.