diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-10 10:30:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-10 10:30:31 +0200 |
commit | 28a11bcc05bc78e5ef8ea4df2e71c97ba4bf6631 (patch) | |
tree | 60b81cd2e536a58d52f3a44f32d57897b1bfff01 | |
parent | 2892837fbf98397152ccff54666d3bae477ac7b4 (diff) | |
download | prosody-28a11bcc05bc78e5ef8ea4df2e71c97ba4bf6631.tar.gz prosody-28a11bcc05bc78e5ef8ea4df2e71c97ba4bf6631.zip |
mod_register: Include additional data in user-registering event
-rw-r--r-- | plugins/mod_register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index 58aa1536..e999428d 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -255,7 +255,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event) session.send(st.error_reply(stanza, "modify", "not-acceptable", "The requested username is invalid.")); return true; end - local user = { username = username , host = host, allowed = true } + local user = { username = username , host = host, additional = data, allowed = true } module:fire_event("user-registering", user); if not user.allowed then log("debug", "Registration disallowed by module"); |