aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-02 13:31:36 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-02 13:31:36 +0100
commit22af4660060be3b7ed7a32e3ee6bfe1f126b2ada (patch)
treec5b302d1a3f850249986e8bb6d1991bcc6f9bbe0
parentfaf2be988f1e0f39490ad64e8c6781e6eece30a9 (diff)
downloadprosody-22af4660060be3b7ed7a32e3ee6bfe1f126b2ada.tar.gz
prosody-22af4660060be3b7ed7a32e3ee6bfe1f126b2ada.zip
util.filters: Break processing if a filterer returns nil
-rw-r--r--util/filters.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/filters.lua b/util/filters.lua
index ee0e6bba..f6a3e77a 100644
--- a/util/filters.lua
+++ b/util/filters.lua
@@ -19,6 +19,7 @@ function initialize(session)
if filter_list then
for i = 1, #filter_list do
data = filter_list[i](data);
+ if data == nil then break; end
end
end
return data;