Browse Source

Fixing a typo in the opening bet check.

master
Uno Polak 11 years ago
parent
commit
c1c0f42189
  1. 2
      lib/currency.js

2
lib/currency.js

@ -207,7 +207,7 @@ Currency.prototype.commands = function (data) {
if (data[4] === 'bet') { if (data[4] === 'bet') {
switch (data[5]) { switch (data[5]) {
case 'open': case 'open':
if (data[5] && data[6]) {
if (data[6] && data[7]) {
__self.bets(true, data); __self.bets(true, data);
} else { } else {
__self.irc.emit('message', {message:__self.pre_text + 'Unable to open betting, need at least two items to bet against'}); __self.irc.emit('message', {message:__self.pre_text + 'Unable to open betting, need at least two items to bet against'});

Loading…
Cancel
Save