Better highlight detection

This commit is contained in:
Mattias Erming 2014-04-27 11:25:03 +02:00
parent 5ff65b1c5c
commit 82d83e0cb6

View file

@ -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,