aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-10 10:30:31 +0200
committerKim Alvefur <zash@zash.se>2017-04-10 10:30:31 +0200
commit3dad4dc1001d0a0405c3e443b1b7e161c8536152 (patch)
tree60b81cd2e536a58d52f3a44f32d57897b1bfff01 /plugins
parent5afc65ca37cf958850d318918043f306dbc92b12 (diff)
downloadprosody-3dad4dc1001d0a0405c3e443b1b7e161c8536152.tar.gz
prosody-3dad4dc1001d0a0405c3e443b1b7e161c8536152.zip
mod_register: Include additional data in user-registering event
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register.lua2
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");