From 429eafd8e4ba9f691a92840e195e586122f376f2 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 27 May 2013 17:45:30 +0000 Subject: [PATCH] banOutput option in command [#460] --- modules/command/command.js | 4 +++- modules/command/config.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/command/command.js b/modules/command/command.js index b238ce7..4a68692 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -24,7 +24,9 @@ var command = function(dbot) { dbot.api.ignore.isUserIgnoring(event.server, event.user, commandName, function(isIgnoring) { dbot.api.ignore.isUserBanned(event.server, event.user, commandName, function(isBanned) { if(isBanned) { - event.reply(dbot.t('command_ban', {'user': event.user})); + if(this.config.banOutput === true && commandName != '~') { + event.reply(dbot.t('command_ban', {'user': event.user})); + } } else if(!hasAccess) { if(this.config.accessOutput) { event.reply(dbot.t('access_denied', { 'user': event.user })); diff --git a/modules/command/config.json b/modules/command/config.json index 3cb33e0..9374a66 100644 --- a/modules/command/config.json +++ b/modules/command/config.json @@ -2,5 +2,6 @@ "ignorable": false, "dependencies": [ "event", "ignore", "users" ], "useNickserv": false, - "accessOutput": false + "accessOutput": false, + "banOutput": false }