# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1587231386 -7200 # Node ID 89e0f5cb60a10269740f783c1593796f41c9110f # Parent f5d88ad24b306907d9057f5253843b7ac87d58b3 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 diff -r f5d88ad24b30 -r 89e0f5cb60a1 doc/doap.xml --- a/doc/doap.xml Mon Apr 20 18:33:05 2020 +0200 +++ b/doc/doap.xml Sat Apr 18 19:36:26 2020 +0200 @@ -431,6 +431,14 @@ </implements> <implements> <xmpp:SupportedXep> + <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0249.html"/> + <xmpp:version>1.2</xmpp:version> + <xmpp:since>0.12</xmpp:since> + <xmpp:note>mod_csi_simple</xmpp:note> + </xmpp:SupportedXep> + </implements> + <implements> + <xmpp:SupportedXep> <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0280.html"/> <xmpp:version>0.12.1</xmpp:version> <xmpp:status>complete</xmpp:status> diff -r f5d88ad24b30 -r 89e0f5cb60a1 plugins/mod_csi_simple.lua --- 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;