User Control Panel
Advertisements

HELP US, HELP YOU!

msn.pm error

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
webguymatt
Newbie
Newbie


Joined: 20 Jan 2005
Posts: 4

Reputation: 15.8Reputation: 15.8

PostPosted: Thu Jan 20, 2005 9:26 pm    Post subject: Reply with quote

Can anyone help me out here? I'm running Win2K and ActiveState Perl 5.8.2. Regardless of which bot I try to run I get the same errors:

---------------------------
Odd number of elements in anonymous hash at d:/Perl/lib/MSN.pm line 45, line 1.
SERVER ERROR : Badly Formated CVR : 1
---------------------------

I've got the SSL updates and I'm positive I have the right username/password in the script.

The SERVER ERROR line repeats itself every minute or so. The script doesn't actually die.

Thanks all!
Matt
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Thu Jan 20, 2005 9:33 pm    Post subject: Reply with quote

What version of MSN.pm do you have?
Back to top
webguymatt
Newbie
Newbie


Joined: 20 Jan 2005
Posts: 4

Reputation: 15.8Reputation: 15.8

PostPosted: Thu Jan 20, 2005 10:33 pm    Post subject: Reply with quote

QUOTE(Mojave @ Jan 20 2005, 01:33 PM)
What version of MSN.pm do you have?

I knew I was missing one piece of info. Smile

MSN 2.0 (11/23/2004) Rev: 81

Matt
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Jan 21, 2005 12:36 am    Post subject: Reply with quote

Well line 45 of MSN.pm is where the object hash is created. If you look at line 73, you'll see it takes all arguments to the new method (the constructor) and adds them into the hash. This lets you set options, including your handle and password. Those options must come in pairs. My best guess is that you are passing in an odd number of arguments to the new method.

Somewhere near the top of your bot, you should have:

Code:
my $msn = new MSN( 'Handle' => 'handle@domain.com', 'Password' => 'password', 'Debug' => 1 );


Make sure those values all come in pairs. In other words, there should be an even number of arguments (where => is the same as , ).
Back to top
webguymatt
Newbie
Newbie


Joined: 20 Jan 2005
Posts: 4

Reputation: 15.8Reputation: 15.8

PostPosted: Fri Jan 21, 2005 3:33 am    Post subject: Reply with quote

QUOTE(Mojave @ Jan 20 2005, 04:36 PM)
Somewhere near the top of your bot, you should have:

Code:
my $msn = new MSN( 'Handle' => 'handle@domain.com', 'Password' => 'password', 'Debug' => 1 );

Mojave - you rock! That allows my bot to sign in.

Unfortunately, that's about as far as my bot gets. It signs in, but doesn't respond to any commands. Here's what I see in Perl (with Debug set to 1):

-------------------------------------------------
Connecting to messenger.hotmail.com:1863 as blah@blah.com/password
Authenticating : https://nexus.passport.com/rdr/pprdr.asp
Authenticating : https://loginnet.passport.com/login2.srf
SERVER ERROR : Empty event received from server : ''
Syncing lists with 1 contacts
SERVER ERROR : Empty event received from server : ''
SERVER ERROR : Empty event received from server : ''
Connecting to SwitchBoard at 207.46.108.61:1863
--------------------------------------------------

And then it just sits. I have to CTRL-C to end the script.

Again, I'm seeing this exact same behaviour on all 6 of the bots/templates that I downloaded. Weird!

Thanks again,
Matt
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Jan 21, 2005 4:11 am    Post subject: Reply with quote

The first thing you should do is get the echobot that came with MSN.pm working. It is a barebones bot that logs in and echos whatever you say to it. And I know it works.
Back to top
webguymatt
Newbie
Newbie


Joined: 20 Jan 2005
Posts: 4

Reputation: 15.8Reputation: 15.8

PostPosted: Fri Jan 21, 2005 4:16 am    Post subject: Reply with quote

QUOTE(Mojave @ Jan 20 2005, 08:11 PM)
The first thing you should do is get the echobot that came with MSN.pm working. It is a barebones bot that logs in and echos whatever you say to it. And I know it works.

OK... echobot works just fine. I also just downloaded dark monkey's White Warrior and it works as well. (with a freakin awesome GUI, I might add)

I'll try messing around to see what the differences are between the bots with issues and echobot.

Thanks for all of your help.

Matt
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group