From 6bb0650a2bf929a738a4de7bb793173626534425 Mon Sep 17 00:00:00 2001 From: David White Date: Wed, 8 Oct 2014 16:51:46 +0100 Subject: [PATCH] Fix highlight checking by lower-casing everything --- 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 d1eb7899..4e0542b9 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.indexOf(irc.me) === 0) type += " highlight"; + if (w.toLowerCase().indexOf(irc.me.toLowerCase()) === 0) type += " highlight"; }); var self = false;