diff options
author | Kim Alvefur <zash@zash.se> | 2017-01-06 13:14:17 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-01-06 13:14:17 +0100 |
commit | ef391bf6c46128a67c5cb408496ea51b6f0d3736 (patch) | |
tree | 3b11c7e02527a952596d57bf3255c668b639f8a6 /plugins | |
parent | c29639e0db4b023bbebe3d6e134c52761a74d1a1 (diff) | |
download | prosody-ef391bf6c46128a67c5cb408496ea51b6f0d3736.tar.gz prosody-ef391bf6c46128a67c5cb408496ea51b6f0d3736.zip |
mod_register: Fix syntax errors
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_register.lua | 3 |
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; |