# HG changeset patch # User Kim Alvefur # Date 1551994590 -3600 # Node ID 5911030a1a6604ae48d90344a3f46801174c9d26 # Parent 9ef309fb501d2ff203d2100fbce18c0400420dbc mod_invite: Fire event that signals that an user has registered (thanks jeybe) This allows other modules to see this and do things, eg mod_watchregistrations diff -r 9ef309fb501d -r 5911030a1a66 mod_invite/mod_invite.lua --- a/mod_invite/mod_invite.lua Wed Mar 06 21:51:45 2019 +0100 +++ b/mod_invite/mod_invite.lua Thu Mar 07 22:36:30 2019 +0100 @@ -109,6 +109,9 @@ invite_storage:set(nil, tokens); + module:fire_event("user-registered", { + username = prepped_username, host = module.host, source = "mod_invite", }); + return apply_template(template, { classes = "alert-success", message = "Your account has been created! You can now log in using an XMPP client." }) else