Better highlight detection
This commit is contained in:
parent
5ff65b1c5c
commit
82d83e0cb6
@ -355,8 +355,8 @@ function event(e, data) {
|
|||||||
var type = "";
|
var type = "";
|
||||||
var text = data.message;
|
var text = data.message;
|
||||||
var network = this;
|
var network = this;
|
||||||
text.split(" ").forEach(function(w) {
|
text.split(/ |'|:/).forEach(function(w) {
|
||||||
if (w == network.client.me) type = "highlight";
|
if (w.indexOf(network.client.me) == 0) type = "highlight";
|
||||||
});
|
});
|
||||||
var msg = new Msg({
|
var msg = new Msg({
|
||||||
type: type,
|
type: type,
|
||||||
|
Loading…
Reference in New Issue
Block a user