diff options
author | Kim Alvefur <zash@zash.se> | 2019-04-29 02:37:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-04-29 02:37:35 +0200 |
commit | 0ec982877caed14891aa11b308ae7fb3cb032acd (patch) | |
tree | c2d15375bb8f73efc3b5c804e2f3605a7f59ce2c /plugins | |
parent | 5da92eb0973e60d13b3240dee2ec9f09335923d0 (diff) | |
download | prosody-0ec982877caed14891aa11b308ae7fb3cb032acd.tar.gz prosody-0ec982877caed14891aa11b308ae7fb3cb032acd.zip |
mod_mimicking: Hook the correct event names
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_mimicking.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_mimicking.lua b/plugins/mod_mimicking.lua index da03967f..8b8d6ee3 100644 --- a/plugins/mod_mimicking.lua +++ b/plugins/mod_mimicking.lua @@ -19,11 +19,11 @@ module:hook("user-registered", function(user) 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 |