X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetvaliddaemons.php;h=80c21bce581c3c0dcb65cc60b52f0985e4ef329c;hb=ecf9dc6d1b5a068b2e5ba23debf2b7bec04d3d2c;hp=7fffac783b8ae67f6f7183911e9c1d84aed072e0;hpb=aeca8807dbce951beccbc3fb0e5a4ae5600e5e5f;p=quix0rs-gnu-social.git diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index 7fffac783b..80c21bce58 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -35,21 +35,15 @@ ENDOFHELP; require_once INSTALLDIR.'/scripts/commandline.inc'; -if(common_config('xmpp','enabled')) { - echo "xmppdaemon.php jabberqueuehandler.php publicqueuehandler.php "; - echo "xmppconfirmhandler.php "; -} -if(common_config('twitterbridge','enabled')) { - echo "twitterstatusfetcher.php "; -} -echo "ombqueuehandler.php "; -if (common_config('twitter', 'enabled')) { - echo "twitterqueuehandler.php "; - echo "synctwitterfriends.php "; -} -echo "facebookqueuehandler.php "; -echo "pingqueuehandler.php "; -if (common_config('sms', 'enabled')) { - echo "smsqueuehandler.php "; +$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"; } -?>