diff --git a/lib/currency.js b/lib/currency.js index 16c06f4..4a6e402 100644 --- a/lib/currency.js +++ b/lib/currency.js @@ -73,6 +73,7 @@ function Currency(irc, db, options) { __self.config.currency = options.currency || 'coins'; __self.config.subscribers_json = options.subscribers || ''; __self.config.website = options.website || ''; + __self.config.modpowers = options.modpowers || false; // general settings __self.pre_text = '> ' + __self.config.currency + ': '; @@ -141,7 +142,7 @@ Currency.prototype.commands = function (data) { } // broadcaster only commands - if (broadcaster_bot_initiated) { + if (broadcaster_bot_initiated || (__self.config.modpowers && moderator_initiated)) { //open / close auction system if (data[4] === 'auction') { switch (data[5]) { @@ -1351,4 +1352,4 @@ Currency.prototype.bets_deduct_bets = function () { module.exports = function (irc, db, options) { return new Currency(irc, db, options); -}; \ No newline at end of file +};