summaryrefslogtreecommitdiffstats
path: root/lualib/lua_bayes_learn.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-24 13:40:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-24 13:40:40 +0100
commit701a711049ee01373bc3862cc441fc3065c8dbc2 (patch)
tree75624d86d48e4f3a9f34e5f19a412d830ee54400 /lualib/lua_bayes_learn.lua
parentebf85df69089ca407d280df4cfaeb865e1e455f1 (diff)
downloadrspamd-701a711049ee01373bc3862cc441fc3065c8dbc2.tar.gz
rspamd-701a711049ee01373bc3862cc441fc3065c8dbc2.zip
[Minor] Rename method name
Diffstat (limited to 'lualib/lua_bayes_learn.lua')
-rw-r--r--lualib/lua_bayes_learn.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_bayes_learn.lua b/lualib/lua_bayes_learn.lua
index 70cbb96c0..7df52a2ef 100644
--- a/lualib/lua_bayes_learn.lua
+++ b/lualib/lua_bayes_learn.lua
@@ -18,7 +18,7 @@ limitations under the License.
local exports = {}
-exports.autolearn = function(task, is_spam, is_unlearn)
+exports.can_learn = function(task, is_spam, is_unlearn)
local learn_type = task:get_request_header('Learn-Type')
if not (learn_type and tostring(learn_type) == 'bulk') then