Wouldn't this do the trick?
code:
function OnEvent_ContactSignout(Email)
{
var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact(Email);
if (Contact.Blocked == false)
{
Contact.Blocked = true;
}
}
function OnEvent_ContactSignin(Email)
{
var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact(Email);
if (Contact.Blocked)
{
Contact.Blocked = false;
}
}
EDIT: Fixed sloppy coding + tested and works