diff -r 25552b21d3fb -r 38c68c285e41 examples/xep0146.lua --- a/examples/xep0146.lua Sun Mar 15 20:45:24 2009 +0200 +++ b/examples/xep0146.lua Sun Mar 15 21:13:10 2009 +0200 @@ -21,13 +21,14 @@ function ( conn, mess ) if mess:child ( 'command' ) and mess:child( 'command' ):attribute ( 'status' ) == 'completed' then main.print_info ( who, 'Now you can run /form del ' .. id .. ' to delete form from list' ) - forms[id].status = 'acquired' + forms.status = 'acquired' else main.print_info ( who, 'Got non-successful response to form:\n' .. mess:xml () ) - forms[id].status = 'rejected' + forms.status = 'rejected' end return true end ) + form.status = 'sent' end forms[id].status = 'filling' main.print_info ( who, 'You have new form. To fill it, use /form ' .. id .. ' fieldname value' )