Bump to v3.4; make all transactions balanced using hidden accounts
See UPGRADING.md for details.
This commit is contained in:
parent
e3a04a0e36
commit
441bf05fde
14 changed files with 116 additions and 40 deletions
|
@ -55,7 +55,7 @@ sub hook_reject($class, $plugin, $reason, $abort, @) {
|
|||
}
|
||||
|
||||
sub hook_user_balance($class, $username, $old, $delta, $new, @) {
|
||||
return if hidden $username;
|
||||
return if hidden $username and not $ENV{REVBANK_DEBUG};
|
||||
|
||||
my $sign = $delta->cents >= 0 ? '+' : '-';
|
||||
my $rood = $new->cents < 0 ? '31;' : '';
|
||||
|
@ -67,7 +67,7 @@ sub hook_user_balance($class, $username, $old, $delta, $new, @) {
|
|||
}
|
||||
|
||||
sub hook_user_created($class, $username, @) {
|
||||
return if hidden $username;
|
||||
return if hidden $username and not $ENV{REVBANK_DEBUG};
|
||||
|
||||
say "New account '$username' created.";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue