# HG changeset patch # User Kim Alvefur # Date 1546804989 -3600 # Node ID 57ceffb139637e7c65a99c0c5282a46955af8c3d # Parent 982529dd0bed0bdaee863a7766d55b27a3cad775 mod_csi_simple: Tweak check for There were code that checked the body for mentions but isn't included. diff -r 982529dd0bed -r 57ceffb13963 plugins/mod_csi_simple.lua --- 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);