]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add basic support for GetValidDaemon event. Shall be extended with configuration...
authorJean Baptiste Favre <statusnet@jbfavre.org>
Sun, 26 Aug 2012 20:52:21 +0000 (22:52 +0200)
committerJean Baptiste Favre <statusnet@jbfavre.org>
Sat, 15 Jun 2013 16:59:16 +0000 (18:59 +0200)
plugins/Xmpp/XmppPlugin.php

index 0f82ed041c8685ba5461ca9f910b5ea2a34e21c4..b21afab461b58574df9852faab4c153b47d7746f 100644 (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',