From b98bf65a863ef9352861b131b09bdc03046a73f0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 20 Nov 2018 13:24:28 +0000 Subject: [PATCH] Add a point to a message's score for each additional script they use (mixed_unicode.py) --- modules/mixed_unicode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/mixed_unicode.py b/modules/mixed_unicode.py index 82680549..3bfcaf91 100644 --- a/modules/mixed_unicode.py +++ b/modules/mixed_unicode.py @@ -67,5 +67,7 @@ class Module(ModuleManager.BaseModule): last_was_separator = False + if len(scripts) > 1: + score += len(scripts)-1 if score > 0: self.log.trace("Message given a mixed-unicode score of %s", [score])