support @foobar-type highlighting

This commit is contained in:
Corentin Delcourt 2014-12-31 15:02:12 +01:00
parent af563db0e2
commit 5efeffb7b8

View file

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