quote:
Originally posted by Oxy
Or perhaps, is it script-able?
I think blocking using the script engine produces the same result as the new appearing offline in 2011. It would then be possible to check if "x" is unblocked, block them.
I'm hoping that appearing offline to someone will trigger a status change event. If so, it'll be a lot resource intensive else it'll need a timer, or to trigger on something else. I'll take a look and get back to you on it.
EDIT:
Unfortunately, the contact will probably see you flicker online for a second due to the nature of the ContactUnblocked event. Just click the toast to unblock them permanently, don't click it and they'll just be blocked again
js code:
var safe = new Array()
function OnEvent_ContactUnblocked(email){
var found = false;
for(var s in safe){
if(s == email) found = true;
}
if(found == false){
Messenger.MyContacts.GetContact(email).Blocked = true;
MsgPlus.DisplayToast("reBLOCK", "Click here to unblock" + email,"","unblock",email);
}else{
delete safe[email];
}
}
function unblock(e){
safe[e] = e;
Messenger.MyContacts.GetContact(e).Blocked = false;
}