use 99 as the quit

This commit is contained in:
Alfred Kamanda 2024-10-09 15:05:59 +03:00
parent 2c98a8e133
commit 9ccb6cc066
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
2 changed files with 3 additions and 3 deletions

View File

@ -1060,7 +1060,7 @@ func (h *Handlers) ViewVoucher(ctx context.Context, sym string, input []byte) (r
var err error var err error
inputStr := string(input) inputStr := string(input)
if inputStr == "0" || inputStr == "00" { if inputStr == "0" || inputStr == "99" {
return res, nil return res, nil
} }

View File

@ -1,7 +1,7 @@
LOAD get_vouchers 0 LOAD get_vouchers 0
MAP get_vouchers MAP get_vouchers
MOUT back 0 MOUT back 0
MOUT quit 00 MOUT quit 99
MNEXT next 11 MNEXT next 11
MPREV prev 22 MPREV prev 22
HALT HALT
@ -9,7 +9,7 @@ LOAD view_voucher 80
RELOAD view_voucher RELOAD view_voucher
CATCH . flag_incorrect_voucher 1 CATCH . flag_incorrect_voucher 1
INCMP _ 0 INCMP _ 0
INCMP quit 9 INCMP quit 99
INCMP > 11 INCMP > 11
INCMP < 22 INCMP < 22
INCMP view_voucher * INCMP view_voucher *