… | |
… | |
141 | my $units = join ", ", @units; |
141 | my $units = join ", ", @units; |
142 | my $fees = - ($service_charge / 100) + 1; |
142 | my $fees = - ($service_charge / 100) + 1; |
143 | |
143 | |
144 | if ($cmd eq "balance") { |
144 | if ($cmd eq "balance") { |
145 | if ($who->flag (cf::FLAG_WIZ)) { |
145 | if ($who->flag (cf::FLAG_WIZ)) { |
146 | my $player = cf::player::find $arguments; |
146 | if (my $player = cf::player::find $arguments) { |
147 | $who->message ("$name says: ".balance ($player->ob, 1), cf::NDI_WHITE); |
147 | $who->message ("$name says: ".balance ($player->ob, 1), cf::NDI_WHITE); |
|
|
148 | } |
148 | } else { |
149 | } else { |
149 | $who->message ("$name says: ".balance ($who, 0), cf::NDI_WHITE); |
150 | $who->message ("$name says: ".balance ($who, 0), cf::NDI_WHITE); |
150 | } |
151 | } |
151 | |
152 | |
152 | } elsif ($cmd eq "deposit" and $currency) { |
153 | } elsif ($cmd eq "deposit" and $currency) { |