Merge pull request #325 from codl/master

support @foobar-type highlighting
This commit is contained in:
Mattias Erming 2015-01-11 23:41:27 +01:00
commit bce916ba52
1 changed files with 1 additions and 1 deletions

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;