<div>OK, I must not be setting something when I connect, because is_connected always returns false...here&#39;s what I&#39;m doing in a Perl plugin:</div>
<div>&nbsp;</div>
<div>
<p>$account = Purple::Accounts::find($account_name, $network);<br>&nbsp;if (!$account-&gt;is_connected()){<br>&nbsp;&nbsp;$account-&gt;set_status(&quot;available&quot;, TRUE);<br>&nbsp;&nbsp;$account-&gt;connect();</p>
<p>&nbsp;&nbsp;}</p>
<p>and later on:</p>
<p>sub is_account_connected {<br>&nbsp;my ($network, $account_name) = @_;<br>&nbsp;<br>&nbsp;$account = Purple::Accounts::find($account_name, $network);<br>&nbsp;if($account-&gt;is_connected()){<br>&nbsp;&nbsp;Purple::Debug::info($script_name, &quot;### Account is connected&quot;);
<br>&nbsp;} else {<br>&nbsp;&nbsp;Purple::Debug::info($script_name, &quot;### Account is not connected&quot;);<br>&nbsp;}<br>}</p>
<p>&nbsp;</p>
<p>When I call that sub, it always says it&#39;s not connected...Any idea what I&#39;m doing wrong?&nbsp; Thanks!</p>
<p>&nbsp;</p></div>