aboutsummaryrefslogtreecommitdiffstats
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
commit1054f2438b2f56790a7d5dcdcb3f841d460d27e7 (patch)
treec2d15375bb8f73efc3b5c804e2f3605a7f59ce2c
parent701fd99947b8d897a60c74b1c2f4ab39fc620876 (diff)
downloadprosody-1054f2438b2f56790a7d5dcdcb3f841d460d27e7.tar.gz
prosody-1054f2438b2f56790a7d5dcdcb3f841d460d27e7.zip
mod_mimicking: Hook the correct event names
-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