"Silverfox" wrote...
: hey All, am trying to use the Aim module and getting this error:
: Code =
: #!/usr/bin/perl -w
:
: use Net::AIM;
: $aim = new Net::AIM;
: $aim->newconn(Screenname =>'anything',
:                         Password =>'duh',)
:                         or die "Error: Cannot Connect to Aim!";
:
: $conn = $aim->getconn();
: $conn->set_handler('im_in', \&on_im);
:
: print "Bot loaded successfully!!\n";
: $aim->start;
:
:
: Error =
: [laptop@localhost perl]$ ./aim.pl
: Bot loaded successfully!!
: Can't use an undefined value as a symbol reference at
: /usr/lib/perl5/site_perl/5.6.1/Net/AIM/Connection.pm line 781.
:         (in cleanup) No method called "handler" for  object. at ./aim.pl
: line 0

You told Net::AIM to execute &on_im when your bot (I'm guessing) receives an
Instant Message even though sub on_im is undefined.

You may want to define an handler for on_config and on_error. These two
aren't managed very well by the module.
-- 
Sanko Robinson reverse(split//,"gro]tod[ksedsih]ta[tcatnoc");
http://hisdesk.org/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to