diff options
author | ssturges <ststurge@cisco.com> | 2022-01-27 17:14:57 -0500 |
---|---|---|
committer | ssturges <ststurge@cisco.com> | 2022-01-27 17:14:57 -0500 |
commit | 639ec37769c72a45f56b4af5c078fdcc737860e9 (patch) | |
tree | 052a821c912e0dcc7b0697af0bea2f36a99f6452 /src/lua | |
parent | 54a39b076073c3600d8f2f8bb655fc574937903e (diff) | |
download | rspamd-639ec37769c72a45f56b4af5c078fdcc737860e9.tar.gz rspamd-639ec37769c72a45f56b4af5c078fdcc737860e9.zip |
Address PR review comments
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index d66af2d0c..0ce93164d 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -2899,12 +2899,12 @@ lua_config_newindex (lua_State *L) } lua_pop (L, 1); if (group) { - if (sym->flags & RSPAMD_SYMBOL_FLAG_UNGROUPPED) - { + if (sym->flags & RSPAMD_SYMBOL_FLAG_UNGROUPPED) { /* Unset the "ungrouped" group */ sym->gr = NULL; } - /* Add the group */ + /* Add the group. If the symbol was ungrouped, this will + * clear RSPAMD_SYMBOL_FLAG_UNGROUPPED from the flags. */ rspamd_config_add_symbol_group (cfg, name, group); } } |