From 311fc4e4dd37b88e78889d17d53727e0b5876685 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 6 Jan 2017 13:14:17 +0100 Subject: mod_register: Fix syntax errors --- plugins/mod_register.lua | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3