examples/lm/muc.lua
changeset 111 5bcdb71ef2f2
parent 77 8a7f7829f4df
equal deleted inserted replaced
110:bd9f24178d67 111:5bcdb71ef2f2
    21 			if x then
    21 			if x then
    22 				success ( x_data.parse ( x ),
    22 				success ( x_data.parse ( x ),
    23 					function ( form, success, fail )
    23 					function ( form, success, fail )
    24 						iq.send ( conn, to, 'set',
    24 						iq.send ( conn, to, 'set',
    25 							{
    25 							{
    26 								command = form:format ( { xmlns = 'http://jabber.org/protocol/muc#owner' }, 'submit' ),
    26 								query = form:format ( { xmlns = 'http://jabber.org/protocol/muc#owner' }, 'submit' ),
    27 							}, success, fail )
    27 							}, success, fail )
    28 					end,
    28 					end,
    29 					function ( form, success, fail )
    29 					function ( form, success, fail )
    30 						iq.send ( conn, to, 'set',
    30 						iq.send ( conn, to, 'set',
    31 							{
    31 							{
    32 								command = form:format ( { xmlns = 'http://jabber.org/protocol/muc#owner' }, 'cancel' ),
    32 								query = form:format ( { xmlns = 'http://jabber.org/protocol/muc#owner' }, 'cancel' ),
    33 							}, success, fail )
    33 							}, success, fail )
    34 					end )
    34 					end )
    35 			end
    35 			end
    36 		end, fail )
    36 		end, fail )
    37 end
    37 end