Comparison

plugins/mod_csi_simple.lua @ 10822:af42448a8e98

mod_csi_simple: Fix unintentional order of rules from merge
author Kim Alvefur <zash@zash.se>
date Sat, 09 May 2020 01:01:01 +0200
parent 10817:7c503938ce1d
child 10823:b8be600803ee
comparison
equal deleted inserted replaced
10821:30fc1ed5647a 10822:af42448a8e98
61 return true, "encrypted"; 61 return true, "encrypted";
62 end 62 end
63 if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then 63 if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then
64 return true, "invite"; 64 return true, "invite";
65 end 65 end
66 if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then
67 return true, "jingle call";
68 end
66 for important in important_payloads do 69 for important in important_payloads do
67 if stanza:find(important) then 70 if stanza:find(important) then
68 return true; 71 return true;
69 end 72 end
70 end
71 if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then
72 return true;
73 end 73 end
74 return false; 74 return false;
75 elseif st_name == "iq" then 75 elseif st_name == "iq" then
76 return true; 76 return true;
77 end 77 end