shitty way to round rain amounts

This commit is contained in:
unek
2014-08-16 17:46:12 +02:00
parent 82a13e9c0d
commit 700d0a9d1f
+1 -1
View File
@@ -260,7 +260,7 @@ client.addListener('message', function(from, channel, message) {
});
}
client.say(channel, settings.messages.rain.expand({name: from, amount: amount / max, list: (whole_channel && !settings.commands.rain.rain_on_last_active) ? 'the whole channel' : names.join(', ')}));
client.say(channel, settings.messages.rain.expand({name: from, amount: parseFloat((amount / max).toFixed(8)), list: (whole_channel && !settings.commands.rain.rain_on_last_active) ? 'the whole channel' : names.join(', ')}));
});
} else {
winston.info('%s tried to tip %s %d, but has only %d', from, to, amount, balance);