aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-30 16:11:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-30 16:11:50 +0100
commit8a1de0ae5f7eba6e86b11c7e5ca0cb36a6988a92 (patch)
treeac03b44f4ef4f4e085b5884b2d0344760716031e /src/lua/lua_task.c
parent486435c147e6af12f8e9ad0cffec98e742fea2c4 (diff)
downloadrspamd-8a1de0ae5f7eba6e86b11c7e5ca0cb36a6988a92.tar.gz
rspamd-8a1de0ae5f7eba6e86b11c7e5ca0cb36a6988a92.zip
[Rework] Implement flags for inserting a symbol
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 9819c4eac..dbd0dcd9b 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -81,9 +81,10 @@ LUA_FUNCTION_DEF (task, get_ev_base);
*/
LUA_FUNCTION_DEF (task, get_worker);
/***
- * @method task:insert_result(symbol, weight[, option1, ...])
+ * @method task:insert_result([enforce_symbol,]symbol, weight[, option1, ...])
* Insert specific symbol to the tasks scanning results assigning the initial
* weight to it.
+ * @param {boolean} enforce_symbol if represented and true, then insert symbol even if it is not registered in the metric
* @param {string} symbol symbol to insert
* @param {number} weight initial weight (this weight is multiplied by the metric weight)
* @param {string} options list of optional options attached to a symbol inserted