Merge pull request #454 from thelounge/xpaw/custom-hl
Only trigger custom highlights for non-self messages and notices
This commit is contained in:
commit
c76cb48ce8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user