aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-29 02:37:35 +0200
committerKim Alvefur <zash@zash.se>2019-04-29 02:37:35 +0200
commit0ec982877caed14891aa11b308ae7fb3cb032acd (patch)
treec2d15375bb8f73efc3b5c804e2f3605a7f59ce2c /plugins
parent5da92eb0973e60d13b3240dee2ec9f09335923d0 (diff)
downloadprosody-0ec982877caed14891aa11b308ae7fb3cb032acd.tar.gz
prosody-0ec982877caed14891aa11b308ae7fb3cb032acd.zip
mod_mimicking: Hook the correct event names
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mimicking.lua4
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