From 76a59dee55bdbfe949428639700b14a0eb3f6e49 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 8 Feb 2015 21:10:23 +0000 Subject: [PATCH] #note #quiet warns --- modules/warning/warning.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); });