From 8857f667412c2db45c5d346575db3eb1cf398b04 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 30 Nov 2018 15:03:00 +0000 Subject: [Minor] Count words based on text words --- src/plugins/chartable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/chartable.c') diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index e48d19ea2..b6e42457a 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -594,7 +594,7 @@ rspamd_chartable_process_part (struct rspamd_task *task, */ part->capital_letters += ncap; - cur_score /= (gdouble)part->utf_words->len; + cur_score /= (gdouble)part->nwords; if (cur_score > 2.0) { cur_score = 2.0; -- cgit v1.2.3