mod_audit/mod_audit.lua
changeset 5325 d02f465e2aff
parent 5323 5043108b14f4
child 5326 eb832553d635
equal deleted inserted replaced
5324:c450dbf6c0fa 5325: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