mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Merge pull request #325 from codl/master
support @foobar-type highlighting
This commit is contained in:
commit
bce916ba52
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue