Merge pull request #812 from birkof/master

No prefetch URLs unless are messages
This commit is contained in:
Alistair McKinlay 2017-01-23 10:43:30 +00:00 committed by GitHub
commit ba165de94e

View File

@ -91,6 +91,9 @@ module.exports = function(irc, network) {
});
chan.pushMessage(client, msg, !self);
// No prefetch URLs unless are simple MESSAGE or ACTION types
if ([Msg.Type.MESSAGE, Msg.Type.ACTION].indexOf(data.type) !== -1) {
LinkPrefetch(client, chan, msg);
}
}
};