mod_delegation: fixed misplaced up() in <message> stanza generation
authorGoffi <goffi@goffi.org>
Wed, 30 Aug 2017 08:19:57 +0200
changeset 2762 82109d8eca41
parent 2761 595d9d68fd11
child 2763 4bf60727459b
mod_delegation: fixed misplaced up() in <message> stanza generation
mod_delegation/mod_delegation.lua
--- a/mod_delegation/mod_delegation.lua	Sun Aug 27 21:35:08 2017 +0200
+++ b/mod_delegation/mod_delegation.lua	Wed Aug 30 08:19:57 2017 +0200
@@ -86,8 +86,8 @@
 				for _, attribute in pairs(ns_data.filtering) do
 					message:tag("attribute", {name=attribute}):up()
 				end
-				message:up()
 			end
+			message:up()
 		end
 	end