Changeset

9767:57ceffb13963 0.11

mod_csi_simple: Tweak check for <body> There were code that checked the body for mentions but isn't included.
author Kim Alvefur <zash@zash.se>
date Sun, 06 Jan 2019 21:03:09 +0100
parents 9763:982529dd0bed
children 9768:ab12fd48e124
files plugins/mod_csi_simple.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua	Sun Jan 06 12:17:00 2019 +0100
+++ b/plugins/mod_csi_simple.lua	Sun Jan 06 21:03:09 2019 +0100
@@ -63,8 +63,10 @@
 		if st_type == "headline" then
 			return false;
 		end
-		local body = stanza:get_child_text("body");
-		return body;
+		if stanza:get_child("body") then
+			return true;
+		end
+		return false;
 	end
 	return true;
 end, -1);