comparison mod_audit/mod_audit.lua @ 5321:d02f465e2aff

mod_audit: Fix iteration of custom payloads to use ipairs
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Apr 2023 13:09:31 +0100
parents 5043108b14f4
children eb832553d635
comparison
equal deleted inserted replaced
5320:c450dbf6c0fa 5321:d02f465e2aff
100 if child then 100 if child then
101 stanza:add_child(child); 101 stanza:add_child(child);
102 end 102 end
103 end 103 end
104 if extra.custom then 104 if extra.custom then
105 for _, child in extra.custom do 105 for _, child in ipairs(extra.custom) do
106 if not st.is_stanza(child) then 106 if not st.is_stanza(child) then
107 error("all extra.custom items must be stanzas") 107 error("all extra.custom items must be stanzas")
108 end 108 end
109 stanza:add_child(child); 109 stanza:add_child(child);
110 end 110 end