From: Vsevolod Stakhov Date: Tue, 30 Jul 2024 10:17:34 +0000 (+0100) Subject: [Minor] Add `task:set_subject` alias for sanity X-Git-Tag: 3.10.0~67^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b547ff8e801979b2f1ea42b1b686476f10341cf;p=rspamd.git [Minor] Add `task:set_subject` alias for sanity --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 21e24fc45..3968c01eb 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1318,6 +1318,7 @@ static const struct luaL_reg tasklib_m[] = { LUA_INTERFACE_DEF(task, get_metric_threshold), LUA_INTERFACE_DEF(task, set_metric_score), LUA_INTERFACE_DEF(task, set_metric_subject), + {"set_subject", lua_task_set_metric_subject}, LUA_INTERFACE_DEF(task, learn), LUA_INTERFACE_DEF(task, set_settings), LUA_INTERFACE_DEF(task, get_settings),