Comparison

mod_delegation/mod_delegation.lua @ 2758:82109d8eca41

mod_delegation: fixed misplaced up() in <message> stanza generation
author Goffi <goffi@goffi.org>
date Wed, 30 Aug 2017 08:19:57 +0200
parent 2752:d0e75bf21d30
child 3271:7504f765e767
comparison
equal deleted inserted replaced
2757:595d9d68fd11 2758:82109d8eca41
84 message:tag("delegated", {namespace=namespace}) 84 message:tag("delegated", {namespace=namespace})
85 if type(ns_data.filtering) == "table" then 85 if type(ns_data.filtering) == "table" then
86 for _, attribute in pairs(ns_data.filtering) do 86 for _, attribute in pairs(ns_data.filtering) do
87 message:tag("attribute", {name=attribute}):up() 87 message:tag("attribute", {name=attribute}):up()
88 end 88 end
89 message:up() 89 end
90 end 90 message:up()
91 end 91 end
92 end 92 end
93 93
94 if have_delegation then 94 if have_delegation then
95 session.send(message) 95 session.send(message)