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
commit9fc1444ea64c2b88592326b11cf0056e39d1e272 (patch)
tree8c9bcc7d61c34b24bab9c4381e3ecb98f117c86b /util/filters.lua
parent21adaa0ff7a965069834d6c4929a13a381c23713 (diff)
downloadprosody-9fc1444ea64c2b88592326b11cf0056e39d1e272.tar.gz
prosody-9fc1444ea64c2b88592326b11cf0056e39d1e272.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;