mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_mimicking: Hook the correct event names
This commit is contained in:
parent
5da92eb097
commit
0ec982877c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue