mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_mimicking: Correctly hook the *global* user-deleted event
This commit is contained in:
parent
14367c5ef7
commit
1cfaaf66fd
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue