mod_mimicking: Hook the correct event names

This commit is contained in:
Kim Alvefur 2019-04-29 02:37:35 +02:00
parent 5da92eb097
commit 0ec982877c

View file

@ -19,11 +19,11 @@ module:hook("user-registered", function(user)
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