Add basic support for GetValidDaemon event. Shall be extended with configuration check.

This commit is contained in:
Jean Baptiste Favre 2012-08-26 22:52:21 +02:00
parent 93c8969a27
commit b8a69d023b
1 changed files with 19 additions and 0 deletions

View File

@ -433,6 +433,25 @@ class XmppPlugin extends ImPlugin
);
}
/**
* Add XMPP plugin daemon to the list of daemon to start
*
* @param array $daemons the list of daemons to run
*
* @return boolean hook return
*/
function onGetValidDaemons($daemons)
{
array_push(
$daemons,
INSTALLDIR
. '/scripts/imdaemon.php'
);
return true;
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => 'XMPP',