Purple::Account::is_connected()
Greg Chagnon
gcgaim at gmail.com
Wed Jul 18 13:38:33 EDT 2007
OK, I must not be setting something when I connect, because is_connected
always returns false...here's what I'm doing in a Perl plugin:
$account = Purple::Accounts::find($account_name, $network);
if (!$account->is_connected()){
$account->set_status("available", TRUE);
$account->connect();
}
and later on:
sub is_account_connected {
my ($network, $account_name) = @_;
$account = Purple::Accounts::find($account_name, $network);
if($account->is_connected()){
Purple::Debug::info($script_name, "### Account is connected");
} else {
Purple::Debug::info($script_name, "### Account is not connected");
}
}
When I call that sub, it always says it's not connected...Any idea what I'm
doing wrong? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pidgin.im/pipermail/devel/attachments/20070718/3cce16f3/attachment.htm
More information about the Devel
mailing list