ah my js skills

This commit is contained in:
unek
2014-02-23 20:07:50 +01:00
parent 8ec606b220
commit 043b74d681
+1 -1
View File
@@ -186,7 +186,7 @@ client.addListener('message', function(from, channel, message) {
var to = match[1];
var amount = Number(match[2]);
if(amount == NaN) {
if(isNaN(amount)) {
client.say(channel, settings.messages.invalid_amount.expand({name: from, amount: match[2]}));
return;
}