aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-06 13:14:17 +0100
committerKim Alvefur <zash@zash.se>2017-01-06 13:14:17 +0100
commitef391bf6c46128a67c5cb408496ea51b6f0d3736 (patch)
tree3b11c7e02527a952596d57bf3255c668b639f8a6 /plugins
parentc29639e0db4b023bbebe3d6e134c52761a74d1a1 (diff)
downloadprosody-ef391bf6c46128a67c5cb408496ea51b6f0d3736.tar.gz
prosody-ef391bf6c46128a67c5cb408496ea51b6f0d3736.zip
mod_register: Fix syntax errors
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index 9358eb64..ee3f88ba 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -62,8 +62,7 @@ local registration_query = st.stanza("query", {xmlns = "jabber:iq:register"})
for _, field in ipairs(additional_fields) do
if type(field) == "table" then
registration_form[#registration_form + 1] = field;
- else
- elseif field_map[field] or field_map[field:sub(1, -2) then
+ elseif field_map[field] or field_map[field:sub(1, -2)] then
if field:match("%+$") then
field = field:sub(1, -2);
field_map[field].required = true;