Skip to content

Commit

Permalink
Merge pull request thelounge#454 from thelounge/xpaw/custom-hl
Browse files Browse the repository at this point in the history
Only trigger custom highlights for non-self messages and notices
  • Loading branch information
AlMcKinlay authored Jul 3, 2016
2 parents c907b13 + d22bf80 commit d2d650b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/js/lounge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d2d650b

Please sign in to comment.