What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » check whether if the contact is in a special list?

check whether if the contact is in a special list?
Author: Message:
ultimatebuster
Junior Member
**


Posts: 17
Joined: Oct 2008
O.P. check whether if the contact is in a special list?
Is this a good way check if a contact is in a trusted list?

Or is there a more efficient way to do it?

code:
var TrustedEmails = "john@hotmail.com,smith@hotmail.com";

function ConfirmTrusted(ChatWnd){
// pretend i passed the ChatWnd from OnEvent_ChatWndReceiveMessage
    var e = new Enumerator(ChatWnd.Contacts);
    for (; !e.atEnd(); e.moveNext()){
        if (TrustedEmails.indexOf(e.item().Email) != -1){
            return true;
        }
    }
    return false;
}


This post was edited on 07-01-2010 at 10:24 PM by ultimatebuster.
07-01-2010 10:24 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
check whether if the contact is in a special list? - by ultimatebuster on 07-01-2010 at 10:24 PM
RE: check whether if the contact is in a special list? - by djdannyp on 07-01-2010 at 10:38 PM
RE: check whether if the contact is in a special list? - by ultimatebuster on 07-01-2010 at 10:55 PM
RE: check whether if the contact is in a special list? - by Matti on 07-02-2010 at 10:05 AM
RE: check whether if the contact is in a special list? - by ultimatebuster on 07-02-2010 at 02:11 PM
RE: check whether if the contact is in a special list? - by Matti on 07-02-2010 at 06:24 PM
RE: check whether if the contact is in a special list? - by ultimatebuster on 07-02-2010 at 06:51 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