Software /
code /
prosody
Changeset
9982:d09575dae242
mod_mimicking: Hook the correct event names
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Apr 2019 02:37:35 +0200 |
parents | 9981:8758febbaca2 |
children | 9983:f7d11503fdce |
files | plugins/mod_mimicking.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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