aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
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;