From c6c3cd40f6304b49f5d4841e9999641a183e987b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 1 Sep 2008 21:26:04 -0400 Subject: separate out presence from connection, send different presence types from queuehandlers darcs-hash:20080902012604-84dde-073a583da9b09c80e5e9a47a5eddd144fad8e87a.gz --- scripts/xmppdaemon.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/xmppdaemon.php') diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 37d638b02..03cadee7c 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -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(); } -- cgit v1.2.3-54-g00ecf