separate out presence from connection, send different presence types from queuehandlers

darcs-hash:20080902012604-84dde-073a583da9b09c80e5e9a47a5eddd144fad8e87a.gz
This commit is contained in:
Evan Prodromou
2008-09-01 21:26:04 -04:00
parent c31afa795f
commit c6c3cd40f6
5 changed files with 23 additions and 12 deletions

View File

@@ -61,12 +61,14 @@ class XMPPDaemon {
$this->log(LOG_INFO, "Connecting to $connect_to on port $this->port");
$this->conn = jabber_connect($this->resource, "Send me a message to post a notice", 100);
$this->conn = jabber_connect($this->resource);
if (!$this->conn) {
return false;
}
jabber_send_presence("Send me a message to post a notice", 'available',
NULL, 'available', 100);
return !$this->conn->isDisconnected();
}