X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FUserLimit%2FUserLimitPlugin.php;h=ed4ff9df497267bda79f09ac6c5290a1e0467a47;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=ac4d503151d569d1d619c52776efe3bab3d31b14;hpb=546a03b5eac5f172d543a889625e2f4de446e8b7;p=quix0rs-gnu-social.git diff --git a/plugins/UserLimit/UserLimitPlugin.php b/plugins/UserLimit/UserLimitPlugin.php index ac4d503151..ed4ff9df49 100644 --- a/plugins/UserLimit/UserLimitPlugin.php +++ b/plugins/UserLimit/UserLimitPlugin.php @@ -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;