Better highlight detection
This commit is contained in:
parent
5ff65b1c5c
commit
82d83e0cb6
|
@ -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 New Issue