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));