examples/remote.lua
changeset 51 a95a3a73482c
parent 49 95f3bf77c598
child 64 bf7521ed96eb
equal deleted inserted replaced
50:12d8dd774fcc 51:a95a3a73482c
    46 											fail ( mess:xml () ) -- XXX more forms?
    46 											fail ( mess:xml () ) -- XXX more forms?
    47 										end
    47 										end
    48 									end, fail )
    48 									end, fail )
    49 							end,
    49 							end,
    50 							function ( form, success, fail )
    50 							function ( form, success, fail )
    51 								success ()
    51 								iq.send ( conn, to, 'set',
       
    52 									{
       
    53 										command = { xmlns = 'http://jabber.org/protocol/commands', node = command, sessionid = sid,
       
    54 											x = { xmlns = 'jabber:x:data', type = 'cancel' }, -- FIXME
       
    55 										},
       
    56 									}, success, fail )
    52 							end )
    57 							end )
    53 					else
    58 					else
    54 						fail ( mess:xml () ) -- XXX
    59 						fail ( mess:xml () ) -- XXX
    55 					end
    60 					end
    56 				end
    61 				end