diff mod_delegation/mod_delegation.lua @ 2069:cf9cd666ba00

mod_delegation: fixed bad use of period instead of colon
author Goffi <goffi@goffi.org>
date Thu, 10 Mar 2016 19:00:04 +0100
parents 107147ca77f7
children d0e75bf21d30
line wrap: on
line diff
--- a/mod_delegation/mod_delegation.lua	Thu Mar 10 19:00:04 2016 +0100
+++ b/mod_delegation/mod_delegation.lua	Thu Mar 10 19:00:04 2016 +0100
@@ -299,7 +299,7 @@
 
 local function find_form_type(stanza)
 	local form_type = nil
-	for field in stanza.childtags('field', 'jabber:x:data') do
+	for field in stanza:childtags('field', 'jabber:x:data') do
 		if field.attr.var=='FORM_TYPE' and field.attr.type=='hidden' then
 			local value = field:get_child('value')
 			if not value then