-if(common_config('xmpp','enabled')) {
- echo "xmppdaemon.php jabberqueuehandler.php publicqueuehandler.php ";
- echo "xmppconfirmhandler.php ";
-}
-if(common_config('memcached','enabled')) {
- echo "memcachedqueuehandler.php ";
-}
-if(common_config('twitterbridge','enabled')) {
- echo "twitterstatusfetcher.php ";
+ENDOFHELP;
+
+require_once INSTALLDIR.'/scripts/commandline.inc';
+
+$daemons = array();
+
+$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
+
+$daemons[] = INSTALLDIR.'/scripts/imdaemon.php';
+
+if (Event::handle('GetValidDaemons', array(&$daemons))) {
+ foreach ($daemons as $daemon) {
+ print $daemon . ' ';
+ }
+ print "\n";