Software /
code /
prosody
Diff
plugins/mod_mimicking.lua @ 9982:d09575dae242
mod_mimicking: Hook the correct event names
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Apr 2019 02:37:35 +0200 |
parent | 9981:8758febbaca2 |
child | 9983:f7d11503fdce |
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