]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Allow overwrite scores with the same priority
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Feb 2016 09:51:03 +0000 (09:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Feb 2016 09:51:03 +0000 (09:51 +0000)
src/libserver/cfg_utils.c

index 5d6b1525b35b28b81f3851fd1bc171b0e3b091b8..e87ba2a2504a2f02c2515f870e04335e7d9103ba 100644 (file)
@@ -1386,7 +1386,7 @@ rspamd_config_add_metric_symbol (struct rspamd_config *cfg,
        sym_def = g_hash_table_lookup (metric->symbols, symbol);
 
        if (sym_def != NULL) {
-               if (sym_def->priority >= priority) {
+               if (sym_def->priority > priority) {
                        msg_info_config ("symbol %s has been already registered with"
                                        "priority %ud, do not override (new priority: %ud)",
                                        symbol,