diff options
-rw-r--r-- | util/filters.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/filters.lua b/util/filters.lua index af5b8d2d..123226c5 100644 --- a/util/filters.lua +++ b/util/filters.lua @@ -46,6 +46,7 @@ function add_filter(session, type, callback, priority) end function remove_filter(session, type, callback) + if not session.filters then return; end local filter_list = session.filters[type]; if filter_list and filter_list[callback] then for i=1, #filter_list do |