# HG changeset patch # User Kim Alvefur # Date 1556498255 -7200 # Node ID d09575dae242ff58c018644e1c9c346f9c1d1bc5 # Parent 8758febbaca245061bb2102ecce48da89f33516c mod_mimicking: Hook the correct event names diff -r 8758febbaca2 -r d09575dae242 plugins/mod_mimicking.lua --- a/plugins/mod_mimicking.lua Mon Apr 29 02:40:39 2019 +0200 +++ b/plugins/mod_mimicking.lua Mon Apr 29 02:37:35 2019 +0200 @@ -19,11 +19,11 @@ datamanager.store(skeleton(user.username), user.host, "skeletons", {username = user.username}); end); -module:hook("user-deregistered", function(user) +module:hook("user-deleted", function(user) datamanager.store(skeleton(user.username), user.host, "skeletons", nil); end); -module:hook("registration-attempt", function(user) +module:hook("user-registering", function(user) if datamanager.load(skeleton(user.username), user.host, "skeletons") then user.allowed = false; end