Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 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 |
parent | 9651:989cf872d5c0 |
child | 9768:ab12fd48e124 |
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);