Comparison

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
parent 2067:107147ca77f7
child 2752:d0e75bf21d30
comparison
equal deleted inserted replaced
2068:e9226e3bdeba 2069:cf9cd666ba00
297 297
298 -- disabling internal features/identities 298 -- disabling internal features/identities
299 299
300 local function find_form_type(stanza) 300 local function find_form_type(stanza)
301 local form_type = nil 301 local form_type = nil
302 for field in stanza.childtags('field', 'jabber:x:data') do 302 for field in stanza:childtags('field', 'jabber:x:data') do
303 if field.attr.var=='FORM_TYPE' and field.attr.type=='hidden' then 303 if field.attr.var=='FORM_TYPE' and field.attr.type=='hidden' then
304 local value = field:get_child('value') 304 local value = field:get_child('value')
305 if not value then 305 if not value then
306 module:log("warn", "No value found in FORM_TYPE field: "..tostring(stanza)) 306 module:log("warn", "No value found in FORM_TYPE field: "..tostring(stanza))
307 else 307 else