|
| Author |
Message |
X-Worm Newbie

Joined: 12 May 2005 Posts: 36
    
|
Posted: Sat Jan 05, 2008 3:37 pm Post subject: MSNP11 |
|
|
I used to have a msn.pm with working PSM and CE's but I seem to have lost it (downloaded it from here once when the links weren't dead).
I believe it was called "MSNP11+PSM", anyone still has it?
Help appreciated |
|
| Back to top |
|
 |
Teario Member

Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK
  votes: 3
|
Posted: Sat Jan 05, 2008 4:58 pm Post subject: |
|
|
Just had a quick google and cant find it. Botworld doesnt have it, I tried their andromeda template but it looks like its using their own module. The P11 MSN.pm had quite a few issues anyway so it might be best to just alter the existing one yourself. Its not that difficult, just use the protocol wiki. Not a lot has changed other than AuthPP3 but inky made a module for that, its literally 1 call to it and youre auth'ed. http://msnpiki.msnfanatic.com/index.php
My old bot is stored on a memory card somewhere but unfortunately I dont have a card reader that can get the data back off. My old server had one built in but that died on christmas eve . I may still have the P11+PSM stuff on there, so once I find a way to retrieve it, i'll post it up here. |
|
| Back to top |
|
 |
X-Worm Newbie

Joined: 12 May 2005 Posts: 36
    
|
Posted: Wed Jan 09, 2008 7:13 pm Post subject: |
|
|
I used to have the 2.0.84 version with the PSM part copied from MSNP11, which worked just fine, now I have tried doing the same by taking bits from the 2.1.2 version (AuthPP3 included).
It connects without any errors (apart from empty event received from server) though it disconnects me whenever I try to change the PSM.
I believe I can't use the 2.1.2 as Crypt::SSLeay won't install on this computer (64-bit, Vista)
Any suggestions/solutions?
Yes, I suck at this. |
|
| Back to top |
|
 |
Teario Member

Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK
  votes: 3
|
Posted: Thu Jan 10, 2008 1:17 pm Post subject: |
|
|
| If you cant install crypt::ssleay then none of the modules will work for you as far as I know. I had trouble installing it using perl 5.10, but no trouble using 5.6, have you tried this? Im also using vista, albeit 32-bit. |
|
| Back to top |
|
 |
X-Worm Newbie

Joined: 12 May 2005 Posts: 36
    
|
Posted: Sun Jan 13, 2008 3:29 pm Post subject: |
|
|
| Not yet, I'll try it later on today. |
|
| Back to top |
|
 |
X-Worm Newbie

Joined: 12 May 2005 Posts: 36
    
|
Posted: Sun Apr 13, 2008 4:39 pm Post subject: |
|
|
Got it working now by reverting back to Perl 5.8 with Vista 32-bit, still I can't get the blasted PSM to work (you'd think I would get better at this).
My command
| Code: |
my $psm = $1;
if ($psm) {
$msn->setPSM("$1","",0,"","");
&send($self,"[$bot_name] PSM updated", $username);
} else {
&send($self,"[$bot_name] You must specify a PSM message to set.", $username);
}
|
The PSM part inside msn.pm
| Code: |
=item
setPSM
set the PSM Message.
=cut
sub setPSM
{
my $self = shift;
return $self->{Notification}->setPSM( @_ );
}
|
Now, using the code below in notification.pm
| Code: |
sub setPSM
{
my $self = shift;
my $psm = shift;
my $data = '<Data><PSM>'.$psm.'</PSM><CurrentMedia></CurrentMedia></Data>';
$self->sendraw("UUX", length($data)."\r\n" . $data);# if ($MSNPROTO eq 'MSNP11');
}
|
... simply disconnects the bot.
Using this code (happens to be yours),
| Code: |
#Teario- set the psm data (MANY thanks to matt007 for showing me how)
sub setPSM
{
my $handle = shift;
my $self = shift;
my $psm = shift;
my $data = '<Data><PSM>'.$psm.'</PSM><CurrentMedia></CurrentMedia></Data>';
$self->sendraw("UUX", length($data)."\r\n" . $data);# if ($MSNPROTO eq 'MSNP11');
}
|
... I get the following error message
| Quote: |
Can't locate object method "sendraw" via package "message" (perhaps you forgot to load "eh"?) at Lib/MSN/Notification.pm line 239.
|
where "message" is whatever you try to set as PSM.
Any help would be greatly appreciated. |
|
| Back to top |
|
 |
Teario Member

Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK
  votes: 3
|
Posted: Mon Apr 14, 2008 12:39 am Post subject: |
|
|
Looks like its shifting in the wrong order. Im pretty sure $self is always going to be the first shift, so try doing it in this order:
| Code: | my $self = shift;
my $psm = shift;
my $handle = shift; |
Ive got working PSM code which i'll post up for you when I get a chance, probably tomorrow some time. |
|
| Back to top |
|
 |
X-Worm Newbie

Joined: 12 May 2005 Posts: 36
    
|
Posted: Sun Apr 20, 2008 5:24 pm Post subject: |
|
|
That did not do the trick.
Happen to have that piece of code laying around on a silver plate somewhere?
Cheers |
|
| Back to top |
|
 |
Teario Member

Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK
  votes: 3
|
Posted: Tue Apr 22, 2008 12:21 pm Post subject: |
|
|
Hi, yeah I think so. Sorry I never got round to giving it to you, ive been mega busy the last few weeks. I'll do it when I get home later, I even wrote it on my hand so I remember  |
|
| Back to top |
|
 |
Teario Member

Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK
  votes: 3
|
Posted: Wed Apr 23, 2008 1:27 am Post subject: |
|
|
| Ok I had a look, i have a few different modules and I dont know which one will work, so I put them all in an archive for you. Since we cant upload to bot depot any more, I put on my own server: http://teaserver.no-ip.org/teario/libs.rar |
|
| Back to top |
|
 |
X-Worm Newbie

Joined: 12 May 2005 Posts: 36
    
|
Posted: Wed Apr 23, 2008 5:56 am Post subject: |
|
|
Works perfect,
Thanks!  |
|
| Back to top |
|
 |
|