diff --git a/modules/report/commands.js b/modules/report/commands.js index ee45ebf..8653f4a 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -49,7 +49,7 @@ var commands = function(dbot) { if(this.config.firstHost) { var first = message.split(' ')[0]; dbot.api.users.resolveUser(event.server, first, function(user) { - if(user) { + if(user && _.include(this.config.host_lookup, channelName)) { dbot.api.nickserv.getUserHost(event.server, first, function(host) { message = message.replace(first, first + ' [' + host + ']'); this.api.notify('notify', event.server, event.rUser, channelName, message); diff --git a/modules/report/config.json b/modules/report/config.json index 1a298dc..477cf9f 100644 --- a/modules/report/config.json +++ b/modules/report/config.json @@ -20,5 +20,8 @@ "chan_redirs": { "#chan": "#chan-notify" }, + "host_lookup": [ + "#chan" + ], "noMissingChans": [] }