Mercurial > 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 | c450dbf6c0fa |
children | 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