User Control Panel
Advertisements

HELP US, HELP YOU!

Net::OSCAR Variables

 
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions
View unanswered posts
Author Message
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Mon Jul 04, 2005 8:20 pm    Post subject: Net::OSCAR Variables Reply with quote

For the callbacks, I know the pass back different information, but what variables store this information. I was on the Net::OSCAR thing on cpan.org. It didn't show the variables. Sorry if this is a simple question.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Jul 04, 2005 8:55 pm    Post subject: Reply with quote

Last time I checked, the callbacks on the documentation had lists of words they receive i.e.

im_in (OSCAR, FROM, MESSAGE, AWAY)

So you just have to put these into variables from @_ in your subroutine for this handler:

Code:
sub im_in {
   my ($oscar, $user, $message, $away) = @_;


And if you're ever in doubt you can always just put

Code:
print join (", ", @_);


at the top of the subroutine to list everything in @_ to find out what's what.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions 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