From 4e10a47c12a58eb2549626442982b549e3a0769a Mon Sep 17 00:00:00 2001 From: jwinterm Date: Mon, 5 Jan 2015 17:09:52 -0600 Subject: [PATCH] Fix locks not reseting on rain error I think this will fix the problem described here: https://github.com/unek/node-tip-bot/issues/18 --- bin/tipbot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tipbot.js b/bin/tipbot.js index bdeb41c..55f0b37 100644 --- a/bin/tipbot.js +++ b/bin/tipbot.js @@ -271,6 +271,7 @@ client.addListener('message', function(from, channel, message) { 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 { + locks[from.toLowerCase()] = null; 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})); }