aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-08-01 18:17:39 +0600
committerGitHub <noreply@github.com>2024-08-01 18:17:39 +0600
commit9265435a9b7fdd132c00767331c85b60dedd7ecf (patch)
treefa5e134bc6e7a96e695a8ea05a3670c75f617a04 /src/lua
parentfe39a258a3e2518a7f1314ef2cbc04e1a33fff2e (diff)
parent066aa70abf2801d39ea7b9d433ec111f682616d2 (diff)
downloadrspamd-9265435a9b7fdd132c00767331c85b60dedd7ecf.tar.gz
rspamd-9265435a9b7fdd132c00767331c85b60dedd7ecf.zip
Merge pull request #5084 from rspamd/vstakhov-negative-group-limits
[Feature] Allow to set negative group score limit via `min_score`
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index f9a79eef1..717aa81ce 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -3933,6 +3933,8 @@ lua_config_get_groups(lua_State *L)
lua_setfield(L, -2, "description");
lua_pushnumber(L, gr->max_score);
lua_setfield(L, -2, "max_score");
+ lua_pushnumber(L, gr->min_score);
+ lua_setfield(L, -2, "min_score");
lua_pushboolean(L, (gr->flags & RSPAMD_SYMBOL_GROUP_PUBLIC) != 0);
lua_setfield(L, -2, "is_public");
/* TODO: maybe push symbols as well */