Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

net::AIM TOC buddy sign on notification

Status
Not open for further replies.

cello1000

Programmer
Jul 23, 2003
3
US
I am trying to make a bot for AIM with perl. I want the bot to be able to know when a buddy signs on. I am useing this:


$aim = new Net::AIM;
$aim->newconn( Screenname => $screenname, Password => $password )
or die "didn't connect\n";

my $conn = $aim->getconn();

$conn->set_handler('UPDATE_BUDDY', \&on_buddy);

sub on_buddy {
print "SOMETHING HAPPENED";
my ($self, $event) = @_;
my ($freind, $ison) = @{$event->args()};
#rest of buddy sub...
}


SOMETHING HAPPENED is not even being printed.. so the sub is not even being run.

I am useing as my guide for TOC.

It would be much appreciated if someone knew why my buddy sub isnt being called.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top