Messaging.send(sender, tag + template.parse());
return false;
}
Account holder = new Account(from.getName());
Holdings holdings = holder.getHoldings();
if(holdings.getBalance() < amount) {
template.set(Template.Node.ERROR_FUNDS);
Messaging.send(sender, tag + template.parse());
return false;
}
Account account = new Account(name);
holdings.subtract(amount);
account.getHoldings().add(amount);
template.set(Template.Node.PAYMENT_TO);
template.add("name", name);
template.add("amount", iConomy.format(amount));