mirror of
https://github.com/jwinterm/node-tip-bot.git
synced 2026-10-17 05:41:42 +02:00
ah my js skills
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user