From 9a8617e6d49a252756d175abac36e62e36bd4c51 Mon Sep 17 00:00:00 2001 From: Uno Polak Date: Mon, 6 Jan 2014 20:53:22 -0600 Subject: [PATCH] Fixing a bug where the first mod was not registering properly for commands. --- lib/currency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/currency.js b/lib/currency.js index f41bc33..1d37404 100644 --- a/lib/currency.js +++ b/lib/currency.js @@ -136,7 +136,7 @@ Currency.prototype.start = function () { Currency.prototype.commands = function (data) { var __self = this, broadcaster_bot_initiated = __self.irc.caller(data[0]).toLowerCase() === __self.irc.config.broadcaster.toLowerCase() || __self.irc.caller(data[0]).toLowerCase() === __self.irc.config.name.toLowerCase(), - moderator_initiated = __self.irc.mods.indexOf(__self.irc.caller(data[0])) > 0; + moderator_initiated = __self.irc.mods.indexOf(__self.irc.caller(data[0])) >= 0; // handle ! commands if (data[3].slice(1) === '!' + __self.config.currency.toLowerCase()) {