aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi_simple.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 1efff38f..51644515 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -63,8 +63,10 @@ module:hook("csi-is-stanza-important", function (event)
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);