mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 22:54:15 +00:00
Only trigger custom highlights for non-self messages and notices
This commit is contained in:
parent
2fedd861d7
commit
2d7922769f
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ $(function() {
|
|||
var chan = chat.find(target);
|
||||
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;
|
||||
})) {
|
||||
data.msg.highlight = true;
|
||||
|
|
Loading…
Reference in a new issue