From 0a2391f4363689db134b2956427dce5f6626dd09 Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Fri, 3 Jan 2014 16:47:57 -0600 Subject: [PATCH] Add modpowers to currency commands --- lib/currency.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +};