What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » My auto-block script messes up [MsgPlus bug?]

My auto-block script messes up [MsgPlus bug?]
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: My auto-block script messes up [MsgPlus bug?]
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.

This post was edited on 08-07-2007 at 01:11 PM by matty.
08-05-2007 03:30 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
My auto-block script messes up [MsgPlus bug?] - by kam1kaz3 on 08-05-2007 at 02:09 PM
RE: My auto-block script messes up [MsgPlus bug?] - by matty on 08-05-2007 at 03:30 PM
RE: My auto-block script messes up [MsgPlus bug?] - by kam1kaz3 on 08-05-2007 at 04:16 PM
RE: My auto-block script messes up [MsgPlus bug?] - by matty on 08-05-2007 at 04:28 PM
RE: RE: My auto-block script messes up [MsgPlus bug?] - by kam1kaz3 on 08-05-2007 at 04:33 PM
RE: My auto-block script messes up [MsgPlus bug?] - by kam1kaz3 on 08-06-2007 at 12:48 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On