implement nick highlight feature in chat

This commit is contained in:
Stefan Breunig
2013-02-05 15:33:15 +01:00
parent 7f7d716d2b
commit 6c6cd10827
4 changed files with 22 additions and 3 deletions

View File

@ -365,7 +365,10 @@ window.chat.renderPlayerMsgsTo = function(isFaction, data, isOldMsgs, dupCheckAr
window.setPlayerName(pguid, nick); // free nick name resolves
}
if(markup[0] === 'TEXT') msg = markup[1].plain.autoLink();
if(markup[0] === 'TEXT') {
msg = markup[1].plain.autoLink();
msg = msg.replace(window.PLAYER['nickMatcher'], '<em>$1</em>');
}
if(!isFaction && markup[0] === 'SECURE') {
nick = null;