From 2d7922769fe8b8b55ec89c1fee8565cdfb645cf3 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 3 Jul 2016 16:28:02 +0300 Subject: [PATCH] Only trigger custom highlights for non-self messages and notices --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 694cf59e..a567efef 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -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;