diff options
Diffstat (limited to 'util/filters.lua')
-rw-r--r-- | util/filters.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/filters.lua b/util/filters.lua index 123226c5..ee0e6bba 100644 --- a/util/filters.lua +++ b/util/filters.lua @@ -16,8 +16,10 @@ function initialize(session) function session.filter(type, data) local filter_list = filters[type]; - for i = 1, #filter_list do - data = filter_list[i](data); + if filter_list then + for i = 1, #filter_list do + data = filter_list[i](data); + end end return data; end |