]> source.dussan.org Git - rspamd.git/commit
`get_all_opt` now flattens the content of objects
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 May 2015 14:57:47 +0000 (15:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 May 2015 14:57:47 +0000 (15:57 +0100)
commite80aae67f2e95519c8dd5259f57b8dc32b97487d
treefdb1069a6148d9d69bbfd123974509eb58a162cd
parente86c789d1b42d8197be9da78d5af370cdb79d17f
`get_all_opt` now flattens the content of objects

So now in a configuration with multiple section with the same name, for
example:

module {
param1 = value1;
param2 = value2;
}
module {
param2 = value2_1;
param3 = value3;
}

this function will return a single lua table that looks as following:

param1 = value1,
param2 = value2_1,
param3 = value3
src/lua/lua_config.c
src/plugins/lua/settings.lua
src/plugins/lua/spamassassin.lua
src/plugins/lua/trie.lua