diff --git a/modules/warning/warning.js b/modules/warning/warning.js index e8a80f9..af2f169 100644 --- a/modules/warning/warning.js +++ b/modules/warning/warning.js @@ -34,7 +34,9 @@ var warning = function(dbot) { 'admin_channel': dbot.config.servers[server].admin_channel }); - dbot.say(server, warnee.currentNick, uString); + if(reason.indexOf('#quiet') === -1 && reason.indexOf('#note') === -1) { + dbot.say(server, warnee.currentNick, uString); + } callback(null); });