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 }