From 751c2068fecd49f749567894659f038b89432287 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 24 Jun 2013 18:09:53 +0100 Subject: [PATCH] add optional parameter sto allow chat code to specify it's uncertain if a name is right needed for #393 (but not actually a fix) --- code/player_names.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/player_names.js b/code/player_names.js index 1ad0183c..63c09fde 100644 --- a/code/player_names.js +++ b/code/player_names.js @@ -80,7 +80,9 @@ window.resolvePlayerNames = function() { } -window.setPlayerName = function(guid, nick) { +window.setPlayerName = function(guid, nick, uncertain) { + if(uncertain && guid in localStorage) return; + if($.trim(('' + nick)).slice(0, 5) === '{"L":' && !window.alertFor37WasShown) { window.alertFor37WasShown = true; alert('You have run into bug #37. Please help me solve it!\nCopy and paste this text and post it here:\nhttps://github.com/breunigs/ingress-intel-total-conversion/issues/37\nIf copy & pasting doesn’t work, make a screenshot instead.\n\n\n' + window.debug.printStackTrace() + '\n\n\n' + JSON.stringify(nick));