mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Better highlight detection
This commit is contained in:
parent
5ff65b1c5c
commit
82d83e0cb6
1 changed files with 2 additions and 2 deletions
|
@ -355,8 +355,8 @@ function event(e, data) {
|
|||
var type = "";
|
||||
var text = data.message;
|
||||
var network = this;
|
||||
text.split(" ").forEach(function(w) {
|
||||
if (w == network.client.me) type = "highlight";
|
||||
text.split(/ |'|:/).forEach(function(w) {
|
||||
if (w.indexOf(network.client.me) == 0) type = "highlight";
|
||||
});
|
||||
var msg = new Msg({
|
||||
type: type,
|
||||
|
|
Loading…
Reference in a new issue