aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mimicking.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_mimicking.lua b/plugins/mod_mimicking.lua
index b586a70c..ab7612cb 100644
--- a/plugins/mod_mimicking.lua
+++ b/plugins/mod_mimicking.lua
@@ -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