summaryrefslogtreecommitdiff
path: root/scripts/xmppdaemon.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-26 18:40:11 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-26 18:40:11 -0400
commitb7383d56387109ec2fc049861b01ad37469c2090 (patch)
tree7faa07b8dd65d1b3422066a250932c02780b103a /scripts/xmppdaemon.php
parentf5c9a6ebcffa87fddc562d9728a3e4f3b86a3355 (diff)
fork daemon
darcs-hash:20080626224011-84dde-c6bbfcde6d0802ef3a2346524e0f883e6767c949.gz
Diffstat (limited to 'scripts/xmppdaemon.php')
-rwxr-xr-xscripts/xmppdaemon.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index 8c2e6c168..d5f543b40 100755
--- a/scripts/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -301,4 +301,7 @@ $resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-liste
$daemon = new XMPPDaemon($resource);
-$daemon->runOnce();
+if ($daemon->connect()) {
+ $daemon->set_status("Send me a message to post a notice");
+ $daemon->handle();
+}