From 110f23ca2fdb40d68c4279b3128d2610c375542b Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 13 Oct 2013 00:29:34 +0000 Subject: [PATCH] chan_redirs in report [close #591] --- modules/report/config.json | 3 +++ modules/report/report.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/report/config.json b/modules/report/config.json index fc13fd1..1a298dc 100644 --- a/modules/report/config.json +++ b/modules/report/config.json @@ -17,5 +17,8 @@ "type": "" } }, + "chan_redirs": { + "#chan": "#chan-notify" + }, "noMissingChans": [] } diff --git a/modules/report/report.js b/modules/report/report.js index a089967..09942b7 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -101,6 +101,9 @@ var report = function(dbot) { message = this.internalAPI.formatNotify(type, server, user, cName, message); this.internalAPI.notify(server, _.pluck(ops, 'name'), message); + if(_.has(this.config.chan_redirs, cName)) { + dbot.say(server, this.config.chan_redirs[cName], message); + } }.bind(this)); } }.bind(this));