Only trigger custom highlights for non-self messages and notices
This commit is contained in:
parent
2fedd861d7
commit
2d7922769f
@ -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