]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not use priority in metric registration
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jul 2019 11:21:00 +0000 (12:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jul 2019 11:21:00 +0000 (12:21 +0100)
src/lua/lua_config.c

index db0105cbc2e08430029da883c39a0dbe707ee16e..ec1023f4f95e8cf5f449df7aa097a50bb670fd51 100644 (file)
@@ -1961,12 +1961,12 @@ lua_config_register_symbol (lua_State * L)
                        if (!isnan (score)) {
                                rspamd_config_add_symbol (cfg, name,
                                                score, description, group, flags,
-                                               (guint) priority, nshots);
+                                               0, nshots);
                        }
                        else {
                                rspamd_config_add_symbol (cfg, name,
                                                0.0, description, group, flags,
-                                               (guint) priority, nshots);
+                                               0, nshots);
                        }
 
                        lua_pushstring (L, "groups");