aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-30 13:35:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-30 13:35:22 +0100
commit3607dc8eb27810f2ebcd51fefafeb819aa192ce1 (patch)
tree8b06be5d643bf9fe6344ed8772eb21e5c2e91d40 /src
parentaeb6b4cffa612501f5c74300390c4756a98ba17e (diff)
downloadrspamd-3607dc8eb27810f2ebcd51fefafeb819aa192ce1.tar.gz
rspamd-3607dc8eb27810f2ebcd51fefafeb819aa192ce1.zip
[Minor] Add 'learn_condition' alias
Diffstat (limited to 'src')
-rw-r--r--src/libserver/cfg_rcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 8be75ea22..b90c1116b 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1307,7 +1307,7 @@ rspamd_rcl_classifier_handler (rspamd_mempool_t *pool,
ccf->tokenizer = tkcf;
/* Handle lua conditions */
- val = ucl_object_lookup (obj, "condition");
+ val = ucl_object_lookup_any (obj, "condition", "learn_condition", NULL);
if (val) {
LL_FOREACH (val, cur) {