From 8e9a037d1c930d92a0ff25f77bab6eac693e4d4d Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Mon, 13 Feb 2023 02:28:58 +0100 Subject: [PATCH] Annoy user when they type 'y' instead of 'yes' :) --- plugins/statiegeld_tokens | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/statiegeld_tokens b/plugins/statiegeld_tokens index 6354e18..a31bc0f 100644 --- a/plugins/statiegeld_tokens +++ b/plugins/statiegeld_tokens @@ -281,6 +281,9 @@ sub command($self, $cart, $command, @) { } sub void :Tab(yes,no) ($self, $cart, $input, @) { + if ($input eq 'y') { + return REJECT, "y is not yes..."; + } if ($input ne 'yes') { print "Destruction cancelled.\n"; return ACCEPT;