]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/UserLimit/UserLimitPlugin.php
Merge remote-tracking branch 'upstream/master' into social-master
[quix0rs-gnu-social.git] / plugins / UserLimit / UserLimitPlugin.php
index ac4d503151d569d1d619c52776efe3bab3d31b14..ed4ff9df497267bda79f09ac6c5290a1e0467a47 100644 (file)
@@ -55,7 +55,17 @@ class UserLimitPlugin extends Plugin
         return true;
     }
 
-    function onStartRegistrationTry($action)
+    /**
+     * Called when someone tries to register.
+     *
+     * We check the IP here to determine if it goes over any of our
+     * configured limits.
+     *
+     * @param Action $action Action that is being executed
+     *
+     * @return boolean hook value
+     */
+    function onStartRegistrationTry(Action $action)
     {
         $this->_checkMaxUsers();
         return true;