User Control Panel
Advertisements

HELP US, HELP YOU!

MSN 2.0 Problem

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol modules
View unanswered posts
Author Message
Scott
Member
Member


Joined: 29 Nov 2003
Posts: 134

Reputation: 32.3Reputation: 32.3Reputation: 32.3

PostPosted: Tue Dec 14, 2004 8:21 pm    Post subject: Reply with quote

Hey all,

ok i am building my template that i am going to release but i have run into a problem

Quote:
MSN 2.0 (11/23/2004) Rev: 81  - Checksum: 44763-NS10325-SB52719

Use of uninitialized value in concatenation (.) or string at lib/MSN.pm line 220, line 1.
Use of uninitialized value in concatenation (.) or string at lib/MSN.pm line 220, line 1.
Connecting to messenger.hotmail.com:1863 as /
(3 NS) TX: VER 0 MSNP10 MSNP9 CVR0
(3 NS) RX: VER 0 MSNP10 MSNP9 CVR0
Use of uninitialized value in concatenation (.) or string at lib/MSN/Notification.pm line 572, line 1.
(3 NS) TX: CVR 1 0x0409 winnt 5.0 i386 MSNMSGR 6.1.0203 MSMSGS
(3 NS) RX: 731 1
SERVER ERROR : Badly Formated CVR : 1


it looks as though it isn't passing the username and password to the module

Here is the beginning of bot.pl:
Code:
use lib "./lib";<br /><br />use MSN;<br /><br />require "config.dat";<br /><br /># create an MSN object showing all server errors and other errors<br />#my $msn = new MSN( 'Handle' => $handle, 'Password' => $password );<br /><br /># OR create an MSN object with all error messages turned off<br />#my $msn = new MSN( 'Handle' => $handle, 'Password' => $password, 'ServerError' => 0, 'Error' => 0 );<br /><br /># OR create an MSN object with full debugging info<br />my $msn = new MSN( 'Handle' => $handle, 'Password' => $password, 'AutoloadError' => 1, 'Debug' => 1, 'ShowTX' => 1, 'ShowRX' => 1 );


and here is the config.dat file:
Quote:
# HelplessBot Template
# Config

my $handle = 'scott@unixhideout.com';
my $password = '********';


also the lines from the errors:
lib/MSN.pm line 220:
Quote:
$self->debug( "Connecting to $self->{Host}:$self->{Port} as $self->{Handle}/$self->{Password}" );


and lib/MSN/Notification.pm line 572:
Quote:
$self->send( 'CVR', CVER10 . $self->{Handle} );


if you could help please that would be great, thanks
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Tue Dec 14, 2004 8:44 pm    Post subject: Reply with quote

Have you tried declaring the $handle and $password variables in your bot.pl instead of the config.dat? I'm not sure why and I haven't tested it, but I think you'll find that either the variables are local to the .dat file because of the mys or Perl is not treating the config.dat file as actual Perl source during the require.

When you have errors like this, the thing to do is remove all doubt of the use of external files.
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Wed Dec 15, 2004 1:11 am    Post subject: Reply with quote

Yeah. Just like "my" declares variables for the current scope (means they're gone at the next }), it does the same thing with required files.

For example (red = already there, blue = require-included codes)

Quote:
#!/usr/bin/perl

my $red = 'FF0000';

my $blue = '0000FF';

print "Red: $red\n"
. "Blue: $blue\n\n";


The value of $red would show, but not $blue.
___________________

Anyways, declare them with "our" to make them global.

So in the config.dat, use "our $handle" and "our $password"

If that doesn't work, declare them before loading that file (using our again), and in the config.dat just refer to them (i.e. "$handle = 'name@domain.com';")

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Scott
Member
Member


Joined: 29 Nov 2003
Posts: 134

Reputation: 32.3Reputation: 32.3Reputation: 32.3

PostPosted: Wed Dec 15, 2004 2:19 am    Post subject: Reply with quote

i found a new way to sort it but thanks Cer that will come in useful in the furure
Back to top
davidcsi
Newbie
Newbie


Joined: 27 Feb 2008
Posts: 1


PostPosted: Wed Feb 27, 2008 3:56 pm    Post subject: Reply with quote

How did you solve this error? I'm having the same problem



thanks
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 130
Location: Liverpool(home) or Derby(uni), UK
Reputation: 59.8
votes: 3

PostPosted: Thu Feb 28, 2008 1:13 pm    Post subject: Reply with quote

The topic is 4 years old, the original poster is long gone by now. If you post your problems here (or in a new topic) then we can help you sort it out.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol modules 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