don't treat names resolved from old chat messages as certain - only new ones

this prevents people having a name change from getting inconsistant results as old/new messages are seen
fix #393
This commit is contained in:
Jon Atkins
2013-06-26 15:14:15 +01:00
parent 7061f5f561
commit ab3bdcef30
2 changed files with 13 additions and 8 deletions

View File

@ -81,6 +81,8 @@ window.resolvePlayerNames = function() {
window.setPlayerName = function(guid, nick, uncertain) {
// the 'uncertain' flag is set when we're scrolling back through chat. it's possible in this case
// to come across a message from before a name change. these should be ignored if existing cache entries exist
if(uncertain && guid in localStorage) return;
if($.trim(('' + nick)).slice(0, 5) === '{"L":' && !window.alertFor37WasShown) {