aboutsummaryrefslogtreecommitdiffstats
path: root/util/filters.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-09-30 21:51:42 +0200
committerKim Alvefur <zash@zash.se>2013-09-30 21:51:42 +0200
commit6b44449fc485962e327eb5595768c99e8525f93d (patch)
tree8c9bcc7d61c34b24bab9c4381e3ecb98f117c86b /util/filters.lua
parent02ce848f9e81e0201d42449c1bcab8274817fb47 (diff)
downloadprosody-6b44449fc485962e327eb5595768c99e8525f93d.tar.gz
prosody-6b44449fc485962e327eb5595768c99e8525f93d.zip
util.filters: Fix inserting items so that higher priority filters run first
Diffstat (limited to 'util/filters.lua')
-rw-r--r--util/filters.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/filters.lua b/util/filters.lua
index d143666b..d24bd33e 100644
--- a/util/filters.lua
+++ b/util/filters.lua
@@ -52,7 +52,7 @@ function add_filter(session, type, callback, priority)
local i = 0;
repeat
i = i + 1;
- until not filter_list[i] or filter_list[filter_list[i]] >= priority;
+ until not filter_list[i] or filter_list[filter_list[i]] < priority;
t_insert(filter_list, i, callback);
filter_list[callback] = priority;