Fix highlight checking by lower-casing everything

This commit is contained in:
David White 2014-10-08 16:51:46 +01:00
parent 189fed861a
commit 6bb0650a2b

View file

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