diff --git a/plugins/nomoney b/plugins/nomoney index 2e9bcf2..21265a3 100644 --- a/plugins/nomoney +++ b/plugins/nomoney @@ -18,8 +18,6 @@ sub _derive_plugin($symbol) { return; } -my %unresolved; # to keep state, keyed per real cart - sub _inform($unresolved, $username, $skip_print = 0) { call_hooks("beep"); @@ -45,6 +43,8 @@ sub _inform($unresolved, $username, $skip_print = 0) { } } +my %unresolved; # to share state between hooks, keyed per real cart + sub hook_checkout_prepare($class, $cart, $username, $transaction_id, @) { my $unresolved = $unresolved{$cart} = RevBank::Cart->new;