Posted: Wed Aug 09, 2006 8:00 am Post subject: Bot Error
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.
Joined: 05 Jul 2004 Posts: 31 Location: Almere, The Netherlands
Posted: Wed Aug 09, 2006 8:57 am Post subject:
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
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.
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