Software /
code /
prosody-modules
Changeset
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 | 5320:c450dbf6c0fa |
children | 5322:eb832553d635 |
files | mod_audit/mod_audit.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua Fri Apr 07 12:09:21 2023 +0100 +++ b/mod_audit/mod_audit.lua Fri Apr 07 13:09:31 2023 +0100 @@ -102,7 +102,7 @@ end end if extra.custom then - for _, child in extra.custom do + for _, child in ipairs(extra.custom) do if not st.is_stanza(child) then error("all extra.custom items must be stanzas") end