X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetvaliddaemons.php;h=99ad41b37471aae803949c025a87b7619087bf14;hb=59043dca7fb6f974b11797c4d0f20e5b78b0611d;hp=8f48e8e6f04019a105771e6a2232345af4338d36;hpb=b3b3af9a2eff10c272bb213eccd3dd3060bc5830;p=quix0rs-gnu-social.git diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index 8f48e8e6f0..80c21bce58 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -35,20 +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"; }