User Control Panel
Advertisements

HELP US, HELP YOU!

Getting Friendly Name on logon

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN.pm Development
View unanswered posts
Author Message
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Tue Jan 27, 2004 8:05 pm    Post subject: Reply with quote

It shouldn't be hard to either store the Friendly name when you logon, and then also when ever its changed. You have any ideas on the protocol for FriendlyName on logon keenie? I found it but i'm not sure if it changes between the different protocols.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Wed Jan 28, 2004 1:04 am    Post subject: Reply with quote

I really can't remember if it changed any in msnp10 but for msnp9

Code:
elsif ($data[1] eq 'OK')<br />            {<br />                if ( $self->{Type} eq "NS")<br />                {<br />                    my $friendly = $data[3];<br />                    $self->send('CHG', 'NLN 536870964');<br />                    $self->call_event("Connected",$self,$friendly);<br />                    $self->send('SYN', "0 0") if $self->isVer('MSNP10');;<br />                    $self->send('SYN', "0") if $self->isVer('MSNP9');;<br />                }<br />                if (defined $self->GetMaster->{Calls}->{$self->{TrID}})<br />                {<br />                    $self->send('CAL',  $self->GetMaster->{Calls}->{$self->{TrID}}->{Handle});<br />                }<br /><br />            }


Code:
sub Connected {<br />    my ($self, $friendly) = @_;<br /><br />    warn "CONNECTED: FRIENDLY: $friendly";<br />}


outputs

Quote:
Starting now...
CONNECTED: FRIENDLY: TestBot at andromeda.pl line 18, line 4.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN.pm Development 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