Move :Tab introspection from main:: to RevBank::Plugin

- Exposes the introspection as a public method.
- Removes undocumented support for NOABORT special-case.
This commit is contained in:
Juerd Waalboer 2023-11-02 03:15:01 +01:00
parent 4f0954b2dc
commit 8956d8a483
3 changed files with 30 additions and 27 deletions

View file

@ -43,7 +43,7 @@ sub arg :Tab(USERS) ($self, $cart, $arg, @) {
}
# finish
sub reason :Tab(bbq,NOABORT) ($self, $cart, $reason, @) {
sub reason :Tab(bbq) ($self, $cart, $reason, @) {
return REJECT, "'$reason' is a username, not a description :)."
if parse_user($reason);
return REJECT, "'$reason' is an amount, not a description :)."