mod_measure_registration/mod_measure_registration.lua
author Kim Alvefur <zash@zash.se>
Sun, 11 Feb 2024 12:50:53 +0100
changeset 5838 866a49f5aa61
parent 3955 32d9d155a9b9
permissions -rw-r--r--
mod_firewall: Fix to find scripts when installed with plugin installer Extra resources are stored in a different path by luarocks, not alongside the code as this code assumed. Thanks eTaurus

local count_registering = module:measure("user_registering", "rate");
local count_registered = module:measure("user_registered", "rate");

module:hook("user-registering", function ()
	count_registering();
end);

module:hook("user-registered", function ()
	count_registered();
end);