User Control Panel
Advertisements

HELP US, HELP YOU!

Bot Error

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


Joined: 09 Aug 2006
Posts: 4


PostPosted: Wed Aug 09, 2006 8:00 am    Post subject: Bot Error Reply with quote

Receiving this error when trying to sign in using Mayabot 4.0

Connecting to server [bla bla bla]
SERVER ERROR : Empty event received from server : ''

Any ideas would be appreciated! I'm running Perl 5.8 on Windows XP and on the top it says MSN 2.0 <11/23/2004> Rev: 81 - Checksum: 44763-NS10325-SB52719 If you need that information.

Thanks,
Morp
Back to top
ERijkee
Newbie
Newbie


Joined: 05 Jul 2004
Posts: 31
Location: Almere, The Netherlands
Reputation: 35.4Reputation: 35.4Reputation: 35.4Reputation: 35.4

PostPosted: Wed Aug 09, 2006 8:57 am    Post subject: Reply with quote

If your bot just runs after displaying this error you can safely ignore it.
It is caused by MSN.pm not reading the profile message correctly.
All the lines in the profile message are read line by line as if it are seperate server commands(while they're not).

You only have to use this fix if you really want to, your bot will probably just work without it.
I made this for my own version of MSN.pm:
Code:
sub CMD_MSG
{
    my $self = shift;
    my $length = $_[2];
    if( length( $self->{buf} ) < $length )
   {
      $self->{buf} = $self->{line} . $self->{buf};
      return "wait";
   }
   my $msg = $self->{buf};
   $msg =~ s/\r//gs;
   my @headers = split (/\n/, $msg);
   foreach my $item (@headers)
   {
      my $key = substr($item,0,index($item,": "));
      my $value = substr($item,index($item,": ")+2);
      $self->{Profile}->{$key} = $value || "";
   }
   $self->{buf} = substr($self->{buf},$length);
}

Just add this to lib/MSN/Notification.pm
It correctly reads out the profile message and saves it to $self->{Profile}

_________________
3D chat program I'm making Smile
Back to top
AFMorpheus
Newbie
Newbie


Joined: 09 Aug 2006
Posts: 4


PostPosted: Wed Aug 09, 2006 8:02 pm    Post subject: Reply with quote

Thanks try out that fix this evening, i wont know it worked for awhile, how I dont connect directly after it, just stops there and goes no farther. I also have a firewall that could be blocking it if thats not normal. So what do I need to add to MkAfee firewall to make it go through.

Thanks,
Morp
Back to top
AFMorpheus
Newbie
Newbie


Joined: 09 Aug 2006
Posts: 4


PostPosted: Wed Aug 09, 2006 8:56 pm    Post subject: Reply with quote

I'm not getting disconnected from server, no pong received from server.

Any idea on this new problem? Besides maybe the firewall? Which I think is turned off but still isnt connecting.

Your fix corrected the last problem to by the ways, thanks!
Back to top
DisneyKatie
Newbie
Newbie


Joined: 07 Aug 2006
Posts: 4


PostPosted: Fri Aug 11, 2006 11:03 pm    Post subject: Reply with quote

AF are you using a router? that could be the problem, I can't use my bot on this main computer, however I have my own laptop(which i am the administrator of-but am using a limited account on here)and it works fine on my laptop. you will usually get an error when connecting to msn but usually it is nothing to worry about, and it still connects
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