Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 10733:89e0f5cb60a1
mod_csi_simple: Consider MUC invites important
Both mediated invites defined by XEP-0045: Multi-User Chat and direct
invites defined by XEP-0249: Direct MUC Invitations
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 18 Apr 2020 19:36:26 +0200 |
parent | 10724:7835b9f14cb8 |
child | 10769:8cecb85e4bc4 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Mon Apr 20 18:33:05 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sat Apr 18 19:36:26 2020 +0200 @@ -48,6 +48,9 @@ if stanza:get_child("encryption", "urn:xmpp:eme:0") then return true; end + if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then + return true; + end for important in important_payloads do if stanza:find(important) then return true;