Merge pull request #454 from thelounge/xpaw/custom-hl

Only trigger custom highlights for non-self messages and notices
This commit is contained in:
Alistair McKinlay 2016-07-03 16:05:37 +01:00 committed by GitHub
commit c76cb48ce8

View File

@ -222,7 +222,7 @@ $(function() {
var chan = chat.find(target); var chan = chat.find(target);
var msg; var msg;
if (highlights.some(function(h) { if (!data.msg.highlight && !data.msg.self && (type === "message" || type === "notice") && highlights.some(function(h) {
return data.msg.text.indexOf(h) > -1; return data.msg.text.indexOf(h) > -1;
})) { })) {
data.msg.highlight = true; data.msg.highlight = true;