commit 2e3c7c1: [Minor] Settings: Treat settings section name as implicit id

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jun 10 17:14:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-10 11:30:46 +0100
URL: https://github.com/rspamd/rspamd/commit/2e3c7c1833d7660fff043cf0eb1a67fa86edf29c

[Minor] Settings: Treat settings section name as implicit id

---
 src/plugins/lua/settings.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 4535ab7b3..de30ada5a 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -712,6 +712,7 @@ local function process_settings_table(tbl)
 
     -- Now we must process actions
     if elt['symbols'] then out['symbols'] = elt['symbols'] end
+    if not elt.id then elt.id = name end
     if elt['id'] then
       out['id'] = elt['id']
       settings_ids[elt['id']] = out


More information about the Commits mailing list