What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » Scripting Bugs...

Scripting Bugs...
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Scripting Bugs...
So we have two contacts with same email but different networks (as this is possible according to the plus! scripting docs):

What will happen when you do createchat() or getcontact() with just the email in that case? Open a chat and get the contact from the MSN network?

And since both emails exist, we also can't check for the .Network, because, what contact is meant with getcontact("e@mail.com")? Or, to put it in another way, to get the correct network for the contact, we _need_ to prefix the email with "yahoo". But then again, since we prefix it with yahoo, we already know it is a yahoo contact...

And let's say we have a bunch of email addresses (given by the user or whatever), and we want to know which emails are in our list and what the network is for them.
To get _all_ contact objects from those emails we actually need to call getcontact() twice for each email (once with and once without the prefix)? Because:
1) for a yahoo email, and no same msn email exist, calling getcontact("e@mail.com") will not return null, so we have a contact object to get the network
2) for a yahoo email, and same msn email exists, calling getcontact("e@mail.com") will also not return null, but it will return the wrong contact....
So we _need_ to call getcontact() twice, with and without the prefix....





-----

Another question: How is it actually possible to have 2 of the same emails in Messenger.MyContacts but each with a different network? Does that mean when one signs in with his account in Messenger, he can also sign in with that same email address in yahoo messenger?

-----

And thus since Contact.Email will always give only the email without the possible prefix, every script which uses for example if (Contact.Email !== Messenger.MyEmail) to make sure something isn't done with our own account (and that is used a lot in many scripts!), is no good and will fail since there is a possebility that someone made a yahoo account with that email...

Aka Messenger.MyEmail isn't always our own email address, but might be the email of someone else too!

So, the only correct way to check if a contact object _is_ our own is something like:
if (Contact.Email === Messenger.MyEmail && Contact.Network === 1) { // Contact = us }


?




....
major confussions here



PS: though any help is majorly appriciated, those who want to try and answer these questions or clarify and explain something, make absolutely sure you 100% know what you're talking about and that it is 100% correct what you're saying as it is already confussing enough as it is ;)

This post was edited on 12-15-2006 at 05:54 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-15-2006 05:18 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Scripting Bugs... - by NanaFreak on 12-14-2006 at 03:34 AM
RE: Scripting Bugs... - by Felu on 12-14-2006 at 10:20 AM
RE: Scripting Bugs... - by Patchou on 12-14-2006 at 10:36 PM
RE: Scripting Bugs... - by markee on 12-15-2006 at 03:59 AM
RE: Scripting Bugs... - by Felu on 12-15-2006 at 11:03 AM
RE: Scripting Bugs... - by CookieRevised on 12-15-2006 at 02:36 PM
RE: Scripting Bugs... - by Felu on 12-15-2006 at 02:51 PM
RE: Scripting Bugs... - by CookieRevised on 12-15-2006 at 05:18 PM
RE: Scripting Bugs... - by Menthix on 12-15-2006 at 05:26 PM
RE: Scripting Bugs... - by Patchou on 12-15-2006 at 06:10 PM
RE: Scripting Bugs... - by CookieRevised on 12-15-2006 at 06:17 PM
RE: Scripting Bugs... - by Patchou on 12-15-2006 at 06:23 PM
RE: Scripting Bugs... - by CookieRevised on 12-15-2006 at 09:57 PM
RE: Scripting Bugs... - by Patchou on 12-16-2006 at 12:35 AM
RE: Scripting Bugs... - by ahmetgns on 10-29-2008 at 11:20 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