examples/remote.lua
changeset 51 a95a3a73482c
parent 49 95f3bf77c598
child 64 bf7521ed96eb
--- a/examples/remote.lua	Sun Mar 22 04:54:29 2009 +0200
+++ b/examples/remote.lua	Sun Mar 22 05:49:14 2009 +0200
@@ -48,7 +48,12 @@
 									end, fail )
 							end,
 							function ( form, success, fail )
-								success ()
+								iq.send ( conn, to, 'set',
+									{
+										command = { xmlns = 'http://jabber.org/protocol/commands', node = command, sessionid = sid,
+											x = { xmlns = 'jabber:x:data', type = 'cancel' }, -- FIXME
+										},
+									}, success, fail )
 							end )
 					else
 						fail ( mess:xml () ) -- XXX