ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/bank.ext
(Generate patch)

Comparing deliantra/server/ext/bank.ext (file contents):
Revision 1.7 by root, Mon Sep 22 01:33:09 2008 UTC vs.
Revision 1.8 by elmex, Thu Aug 20 18:12:13 2009 UTC

55 $currency = $amount > 1 ? $coin->name_pl : $coin->name; 55 $currency = $amount > 1 ? $coin->name_pl : $coin->name;
56 56
57 my $pay = $amount * $coin->value; 57 my $pay = $amount * $coin->value;
58 58
59 # First check for possible overflow and user stupidity 59 # First check for possible overflow and user stupidity
60 if ($amount > 2**30) { 60 if ($pay > 2**30) {
61 return "Sorry, we do not handle that kind of money for one $action."; 61 return "Sorry, we do not handle that kind of money for one $action.";
62 } elsif ($amount == 0) { 62 } elsif ($pay == 0) {
63 return "You can not $action nothing."; 63 return "You can not $action nothing.";
64 } elsif ($amount < 0) { 64 } elsif ($pay < 0) {
65 return "You can not $action negative values."; 65 return "You can not $action negative values.";
66 } 66 }
67 67
68 # Here we handle the transactions 68 # Here we handle the transactions
69 if ($action eq "deposit") { 69 if ($action eq "deposit") {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines