Mercurial > prosody-hg
comparison 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 |
| parents | 7835b9f14cb8 |
| children | 8cecb85e4bc4 |
comparison
equal
deleted
inserted
replaced
| 10732:f5d88ad24b30 | 10733:89e0f5cb60a1 |
|---|---|
| 44 end | 44 end |
| 45 if stanza:get_child("subject") then | 45 if stanza:get_child("subject") then |
| 46 return true; | 46 return true; |
| 47 end | 47 end |
| 48 if stanza:get_child("encryption", "urn:xmpp:eme:0") then | 48 if stanza:get_child("encryption", "urn:xmpp:eme:0") then |
| 49 return true; | |
| 50 end | |
| 51 if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then | |
| 49 return true; | 52 return true; |
| 50 end | 53 end |
| 51 for important in important_payloads do | 54 for important in important_payloads do |
| 52 if stanza:find(important) then | 55 if stanza:find(important) then |
| 53 return true; | 56 return true; |
