# HG changeset patch # User Kim Alvefur # Date 1483704857 -3600 # Node ID 2624f4ee34a29b218372f1de7018bd9239dfacb2 # Parent f8d25a2e80eae6c3a9c4927bbc91082f69134e7c mod_register: Fix syntax errors diff -r f8d25a2e80ea -r 2624f4ee34a2 plugins/mod_register.lua --- a/plugins/mod_register.lua Fri Jan 06 13:09:09 2017 +0100 +++ b/plugins/mod_register.lua Fri Jan 06 13:14:17 2017 +0100 @@ -62,8 +62,7 @@ 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;