From 5efeffb7b8d1a00ab2a15f786c65496fb20540a4 Mon Sep 17 00:00:00 2001 From: Corentin Delcourt Date: Wed, 31 Dec 2014 15:02:12 +0100 Subject: [PATCH] support @foobar-type highlighting --- src/plugins/irc-events/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc-events/message.js b/src/plugins/irc-events/message.js index 4e0542b9..aa990bb7 100644 --- a/src/plugins/irc-events/message.js +++ b/src/plugins/irc-events/message.js @@ -36,7 +36,7 @@ module.exports = function(irc, network) { } text.split(" ").forEach(function(w) { - if (w.toLowerCase().indexOf(irc.me.toLowerCase()) === 0) type += " highlight"; + if (w.replace(/^@/, "").toLowerCase().indexOf(irc.me.toLowerCase()) === 0) type += " highlight"; }); var self = false;