changeset 1868:d6e673f98572

mod_filter_chatstates: Revert filter-to-nothing hack
author Kim Alvefur <zash@zash.se>
date Mon, 21 Sep 2015 23:47:37 +0200
parents 34468d3bfcac
children 02390829df1a
files mod_filter_chatstates/mod_filter_chatstates.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_filter_chatstates/mod_filter_chatstates.lua	Mon Sep 21 23:45:45 2015 +0200
+++ b/mod_filter_chatstates/mod_filter_chatstates.lua	Mon Sep 21 23:47:37 2015 +0200
@@ -14,7 +14,7 @@
 		stanza = st.clone(stanza);
 		stanza:maptags(chatstate_tag_filter);
 		if #stanza.tags == 0 then
-			return "";
+			return nil;
 		end
 	end
 	return stanza;