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 | 311fc4e4dd37b88e78889d17d53727e0b5876685 (patch) | |
tree | 3b11c7e02527a952596d57bf3255c668b639f8a6 | |
parent | cd8ff4a0bf097e3a65452a2222456e782bb29686 (diff) | |
download | prosody-311fc4e4dd37b88e78889d17d53727e0b5876685.tar.gz prosody-311fc4e4dd37b88e78889d17d53727e0b5876685.zip |
mod_register: Fix syntax errors
-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; |