Browse Source

Fixing a bug where the first mod was not registering properly for commands.

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

2
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 !<currency> commands
if (data[3].slice(1) === '!' + __self.config.currency.toLowerCase()) {

Loading…
Cancel
Save