File

mod_measure_registration/mod_measure_registration.lua @ 4913:47d03db2fca8

mod_conversejs: Remove plugin installer dependency on mod_bookmarks It's available with Prosody 0.12+ already, 0.11 has no installer.
author Kim Alvefur <zash@zash.se>
date Mon, 04 Apr 2022 17:48:34 +0200
parent 3951:32d9d155a9b9
line wrap: on
line source

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);