aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit781fe0e9e6513bb7c5772d68b3630b7da01fb4de (patch)
tree8c9bcc7d61c34b24bab9c4381e3ecb98f117c86b /util
parent4befe401cc3968723c382217ca93eaef13ac04c0 (diff)
downloadprosody-781fe0e9e6513bb7c5772d68b3630b7da01fb4de.tar.gz
prosody-781fe0e9e6513bb7c5772d68b3630b7da01fb4de.zip
util.filters: Fix inserting items so that higher priority filters run first
Diffstat (limited to 'util')
-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;