in reply to Net::OSCAR: Having trouble getting started
Apparently the $oscar->do_one_loop(); is a pretty important aspect. Thanks for your help!#!/usr/bin/perl use Net::OSCAR qw(:standard); %signon = ( screenname => 'myscreenname', password => 'mypassword', local_ip => 'myip', ); $recipient = "myfriend"; $message = "mymessage"; sub signon_done { print "signed on\n"; $online = 1; } $oscar = Net::OSCAR->new(); $oscar->set_callback_signon_done(\&signon_done); $oscar->signon(%signon); while(1) { $oscar->do_one_loop(); if ($online) { $oscar->send_im($recipient, $message); sleep(5); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::OSCAR: Having trouble getting started
by eric256 (Parson) on Jan 29, 2005 at 06:53 UTC | |
|
Re^2: Net::OSCAR: Having trouble getting started
by tcf03 (Deacon) on Jan 29, 2005 at 07:46 UTC |