Move deprecation warning to separate plugin

This commit is contained in:
Juerd Waalboer 2023-02-12 22:01:31 +01:00
parent fffb2d72e9
commit 6b2d8fdee3
3 changed files with 17 additions and 6 deletions

10
plugins/deprecated_raw Normal file
View file

@ -0,0 +1,10 @@
#!perl
sub command :Tab(withdraw) ($self, $cart, $command, @) {
if (defined eval { parse_amount($command) }) {
warn "Note: raw amounts for withdrawal or unlisted products are no longer supported.\n\n";
warn "Please use the 'withdraw' command to take money out of your revbank account, or\n";
warn "the 'unlisted' command to pay for an unlisted product.\n\n";
}
return NEXT;
}