Software /
code /
prosody
Diff
util/filters.lua @ 5849:8f451d370dd4
util.filters: Fix inserting items so that higher priority filters run first
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 Sep 2013 21:51:42 +0200 |
parent | 3943:ad5924c31953 |
child | 5850:e8c743f4213f |
child | 6366:8dee696c33cc |
line wrap: on
line diff
--- a/util/filters.lua Mon Sep 09 11:32:03 2013 +0100 +++ b/util/filters.lua Mon Sep 30 21:51:42 2013 +0200 @@ -52,7 +52,7 @@ 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;