aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 21:09:00 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 21:09:00 +0100
commite03098631f29c17d0ae3eb217d90cae1219f45ef (patch)
tree4d12e9897753371811038d6cb83923e3e82dd22c /plugins/mod_csi_simple.lua
parent05b481ec89cf10d6ca94775afdb199c15f13c3b9 (diff)
downloadprosody-e03098631f29c17d0ae3eb217d90cae1219f45ef.tar.gz
prosody-e03098631f29c17d0ae3eb217d90cae1219f45ef.zip
mod_csi_simple: Consider messages with subject (eg MUC joins) (fixes part of #1250)
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index cf03ef48..da6f4913 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -73,6 +73,9 @@ module:hook("csi-is-stanza-important", function (event)
if stanza:get_child("body") then
return true;
end
+ if stanza:get_child("subject") then
+ return true;
+ end
return false;
end
return true;