Only trigger custom highlights for non-self messages and notices

This commit is contained in:
Pavel Djundik 2016-07-03 16:28:02 +03:00
parent 2fedd861d7
commit 2d7922769f

View file

@ -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;