Changeset

1829:23b3c8e294d2

mod_filter_chatstates: Hack to make sure session.send does not return nil which may break things sometimes
author Kim Alvefur <zash@zash.se>
date Fri, 04 Sep 2015 00:41:29 +0200
parents 1828:318f38d79ea9
children 1830:a45f2f79e99b
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	Fri Sep 04 00:29:08 2015 +0200
+++ b/mod_filter_chatstates/mod_filter_chatstates.lua	Fri Sep 04 00:41:29 2015 +0200
@@ -12,7 +12,7 @@
 			end
 		end);
 		if #stanza.tags == 0 then
-			return nil;
+			return "";
 		end
 	end
 	return stanza;