fixed some wrong messages

This commit is contained in:
unek
2014-02-22 12:41:10 +01:00
parent 65f38beeae
commit c50852c54d
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -145,11 +145,11 @@ client.addListener('message', function(from, channel, message) {
})
} else {
winston.info('%s tried to tip %s %d, but has only %d', from, to, amount, balance);
client.say(channel, settings.messages.no-funds.expand({name: from, balance: balance, short: amount - balance, amount: amount});
client.say(channel, settings.messages.no_funds.expand({name: from, balance: balance, short: amount - balance, amount: amount}));
}
})
} else {
client.say(channel, settings.message.not_identified.expand({name: from});
client.say(channel, settings.messages.not_identified.expand({name: from}));
}
});
}
@@ -182,12 +182,12 @@ client.addListener('message', function(from, channel, message) {
coin.getBalance(user, 0, function(err, unconfirmed_balance) {
if(err) {
winston.error('Error in !balance command: %s', err);
client.say(channel, settings.message.balance.expand({balance: balance, name: user}));
client.say(channel, settings.messages.balance.expand({balance: balance, name: user}));
return;
}
var unconfirmed_balance = typeof(unconfirmed_balance) == 'object' ? unconfirmed_balance.result : unconfirmed_balance;
client.say(channel, settings.message.balance.expand({balance: balance, name: user, unconfirmed: unconfirmed_balance - balance}));
client.say(channel, settings.messages.balance.expand({balance: balance, name: user, unconfirmed: unconfirmed_balance - balance}));
})
});
}
@@ -229,8 +229,8 @@ client.addListener('message', function(from, channel, message) {
return;
}
client.say(channel, settings.messages.withdraw_success.replace({name: from, address: address, balance: balance, amount: balance - settings.coin.withdrawal_fee, transaction: reply}));
client.say(channel, settings.messages.withdraw_success2.replace({name: from, address: address, balance: balance, amount: balance - settings.coin.withdrawal_fee, transaction: reply}));
client.say(channel, settings.messages.withdraw_success.expand({name: from, address: address, balance: balance, amount: balance - settings.coin.withdrawal_fee, transaction: reply}));
client.say(channel, settings.messages.withdraw_success2.expand({name: from, address: address, balance: balance, amount: balance - settings.coin.withdrawal_fee, transaction: reply}));
});
});
} else {
+1 -1
View File
@@ -24,7 +24,7 @@ development:
error: 'Sorry %name%, something went wrong.'
no_funds: "Sorry %name%, you don't have enough funds (you're %short% %short_name% short)"
not_identified: '%name%: You need to be identified with NickServ to tip.'
tipped: 'Wow! %from% tipped %to% %amount%%shortn_ame%! "/msg %nick% help" to claim.'
tipped: 'Wow! %from% tipped %to% %amount%%short_name%! "/msg %nick% help" to claim.'
balance: '%name% has %balance%%short_name%.'
balance_unconfirmed: '%name% has %balance%%short_name% (unconfirmed: %unconfirmed%%short_name%)'
deposit_address: "%name%'s deposit address is %address%"