diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/filters.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/filters.lua b/util/filters.lua index f304e71a..d143666b 100644 --- a/util/filters.lua +++ b/util/filters.lua @@ -76,4 +76,12 @@ function add_filter_hook(callback) t_insert(new_filter_hooks, callback); end +function remove_filter_hook(callback) + for i=1,#new_filter_hooks do + if new_filter_hooks[i] == callback then + t_remove(new_filter_hooks, i); + end + end +end + return _M; |