mod_mimicking: Correctly hook the *global* user-deleted event

This commit is contained in:
Kim Alvefur 2021-10-12 17:55:53 +02:00
parent 14367c5ef7
commit 1cfaaf66fd

View file

@ -29,7 +29,8 @@ module:hook("user-registered", function(user)
end
end);
module:hook("user-deleted", function(user)
module:hook_global("user-deleted", function(user)
if user.host ~= module.host then return end
local skel = skeleton(user.username);
local ok, err = skeletons:set(skel, nil);
if not ok and err then