Add basic support for GetValidDaemon event. Shall be extended with configuration check.
This commit is contained in:
parent
93c8969a27
commit
b8a69d023b
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user