diff --git a/src/plugins/irc-events/link.js b/src/plugins/irc-events/link.js index 0481f444..6d350ad2 100644 --- a/src/plugins/irc-events/link.js +++ b/src/plugins/irc-events/link.js @@ -16,6 +16,9 @@ module.exports = function(irc, network) { var links = []; var split = data.message.split(" "); _.each(split, function(w) { + if (w.match(/^(http|https):\/\/localhost/g)) { + return; + } var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0; if (match) { links.push(w);