diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-18 17:15:33 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-18 17:15:33 +0400 |
commit | 5eb0717f2e58711f850c3f99f7163c105fda12c5 (patch) | |
tree | 32abc9d7c52b5b867fbdabffa1b502c2d5906aa0 /src/lua/lua_classifier.c | |
parent | df48852be53a1822537e55e846723ee49bb421c5 (diff) | |
download | rspamd-5eb0717f2e58711f850c3f99f7163c105fda12c5.tar.gz rspamd-5eb0717f2e58711f850c3f99f7163c105fda12c5.zip |
Create statfiles using learn_spam function for bayes classifier.
Fix call of pre callbacks for a classifier.
Diffstat (limited to 'src/lua/lua_classifier.c')
-rw-r--r-- | src/lua/lua_classifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c index 511767680..901d6cff5 100644 --- a/src/lua/lua_classifier.c +++ b/src/lua/lua_classifier.c @@ -144,7 +144,7 @@ call_classifier_pre_callbacks (struct classifier_config *ccf, struct worker_task lua_pushstring (L, ccf->classifier->name); lua_gettable (L, -2); /* Function is now on top */ - if (lua_isfunction (L, 1)) { + if (lua_isfunction (L, -1)) { res = call_classifier_pre_callback (ccf, task, L, is_learn, is_spam); } } |