cow4263 has asked for the wisdom of the Perl Monks concerning the following question:
# assume $bot is a valid Net::OSCAR object # callbacks $bot->set_callback_signon_done(\&signon_done); $bot->set_callback_buddylist_ok(\&buddylist_ok); $bot->set_callback_buddylist_error(\&buddylist_error); $bot->signon($sn,$passwd); #this logs you into the net # Program should wait here until signon_done # parse a list of @buddies to be added (this works) foreach (@buddies) { $bot->add_buddy($grp, $_) #adds a user $bot->commit_buddylist(); # sets changes to the server # program should wait here until either # buddylist_ok() or buddylist_error() is returned } # ... do other stuff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Waiting for callback event
by sweetblood (Prior) on Nov 22, 2004 at 19:44 UTC | |
by cow4263 (Initiate) on Nov 22, 2004 at 19:53 UTC | |
|
Re: Waiting for callback event
by eric256 (Parson) on Nov 22, 2004 at 19:52 UTC | |
by cow4263 (Initiate) on Nov 22, 2004 at 19:57 UTC | |
by eric256 (Parson) on Nov 22, 2004 at 20:09 UTC | |
|
Re: Waiting for callback event
by castaway (Parson) on Nov 22, 2004 at 19:58 UTC |