aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 21:03:09 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 21:03:09 +0100
commit38c98346b185543fa9f79ab6120f997368662538 (patch)
treeafd65e3ab07e38083ac33bb20a1b3eed8b31384e /plugins/mod_csi_simple.lua
parent1e9a016034d106b7f4f97b0cd11d88fb97d5b120 (diff)
downloadprosody-38c98346b185543fa9f79ab6120f997368662538.tar.gz
prosody-38c98346b185543fa9f79ab6120f997368662538.zip
mod_csi_simple: Tweak check for <body>
There were code that checked the body for mentions but isn't included.
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-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);