Move deprecation warning to separate plugin
This commit is contained in:
parent
fffb2d72e9
commit
6b2d8fdee3
3 changed files with 17 additions and 6 deletions
10
plugins/deprecated_raw
Normal file
10
plugins/deprecated_raw
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue