From 1d6e83b3c0dc2c2935889f08997ae75c08ea3604 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 10 Oct 2011 13:41:50 +0100 Subject: [PATCH] * --- run.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/run.js b/run.js index 40bb63d..2e65437 100644 --- a/run.js +++ b/run.js @@ -85,13 +85,9 @@ DBot.prototype.reloadModules = function() { if(data.channel == this.name) data.channel = data.user; if(this.commands.hasOwnProperty(params[0])) { - if(this.moduleNames.include('admin') && (this.db.bans.hasOwnProperty(params[0]) || this.db.bans['*'].include(data.user))) { - if(this.db.bans[params[0]].include(data.user) || this.db.bans['*'].include(data.user)) - this.say(data.channel, data.user + ' is banned from using this command. Commence incineration.'); - else { - this.commands[params[0]](data, params); - } - } else { + if((this.db.bans.hasOwnProperty(params[0]) && this.db.bans[params[0]].include(data.user)) || this.db.bans['*'].include(data.user)) + this.say(data.channel, data.user + ' is banned from using this command. Commence incineration.'); + else { this.commands[params[0]](data, params); } this.save();