diff --git a/modules/report/api.js b/modules/report/api.js index 1d81dd4..603c589 100644 --- a/modules/report/api.js +++ b/modules/report/api.js @@ -10,6 +10,12 @@ var api = function(dbot) { _.each(message.match(/(#\w+)/g), function(match) { tags.push(match.toLowerCase()); }); + + if(_.has(this.config.full_redirs, cName)) { + message = '(redirect from ' + cName + ') ' + message; + cName = this.config.full_redirs[cName]; + } + this.db.save('notifies', id, { 'id': id, 'server': server, diff --git a/modules/report/config.json b/modules/report/config.json index bbcef47..e857625 100644 --- a/modules/report/config.json +++ b/modules/report/config.json @@ -20,8 +20,11 @@ "chan_redirs": { "#chan": "#chan-notify" }, - "host_lookup": [ + "full_redirs": { + "#chan": "#chan-fullnotify" + }, + "host_lookup": { "#chan" - ], + }, "noMissingChans": [] }