From c1c0f42189edb72f81f6bb704184e2ff257f8a55 Mon Sep 17 00:00:00 2001 From: Uno Polak Date: Mon, 6 Jan 2014 14:51:05 -0600 Subject: [PATCH] Fixing a typo in the opening bet check. --- lib/currency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/currency.js b/lib/currency.js index 0d66fd9..f41bc33 100644 --- a/lib/currency.js +++ b/lib/currency.js @@ -207,7 +207,7 @@ Currency.prototype.commands = function (data) { if (data[4] === 'bet') { switch (data[5]) { case 'open': - if (data[5] && data[6]) { + if (data[6] && data[7]) { __self.bets(true, data); } else { __self.irc.emit('message', {message:__self.pre_text + 'Unable to open betting, need at least two items to bet against'});