examples/xep0060.lua
changeset 27 92b254b64360
parent 26 fc83934f9b8d
child 34 8206d7cb1447
equal deleted inserted replaced
26:fc83934f9b8d 27:92b254b64360
   304 
   304 
   305 -- INTERFACE
   305 -- INTERFACE
   306 
   306 
   307 main.command ( 'node',
   307 main.command ( 'node',
   308 	function ( args )
   308 	function ( args )
   309 		args = parse_args ( args )
   309 		args = main.parse_args ( args )
   310 		local who, action, node = args.t, args[1], args[2]
   310 		local who, action, node = args.t, args[1], args[2]
   311 		if not who then
   311 		if not who then
   312 			who = main.current_buddy ()
   312 			who = main.current_buddy ()
   313 		end
   313 		end
   314 		if action == 'subscribe' then
   314 		if action == 'subscribe' then