aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/settings.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 80792ce2b..8c464431d 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -29,7 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-- https://rspamd.com/doc/configuration/settings.html
local set_section = rspamd_config:get_all_opt("settings")
-if not set_section then return end
+
local settings = {
[1] = {},
[2] = {},
@@ -461,6 +461,8 @@ local function process_settings_map(string)
process_settings_table(obj)
end
end
+
+ return res
end
if set_section[1] and type(set_section[1]) == "string" then