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

@ -155,6 +155,10 @@ function boot() {
// necessary data has been loaded.
urlPortal = getURLParam('pguid');
// load only once
var n = window.PLAYER['nickname'];
window.PLAYER['nickMatcher'] = new RegExp('\\b('+n+')\\b');
$('#sidebar').show();
}