remove automatic refresh when 'account not activated' message or similar is shown

in the past this was a common temporary issue with the intel site, so was worth having as a case in the code
however, this is now very rare, and the more likely reason is an account suspension/ban - and a refresh won't help here!
This commit is contained in:
Jon Atkins 2013-12-02 17:54:49 +00:00
parent 26d410d306
commit 41979cb107

View File

@ -39,8 +39,11 @@ if(!d) {
// page doesnt have a script tag with player information.
if(document.getElementById('header_email')) {
// however, we are logged in.
setTimeout('location.reload();', 3*1000);
throw("Page doesn't have player data, but you are logged in. Reloading in 3s.");
// it used to be regularly common to get temporary 'account not enabled' messages from the intel site.
// however, this is no longer common. more common is users getting account suspended/banned - and this
// currently shows the 'not enabled' message. so it's safer to not repeatedly reload in this case
// setTimeout('location.reload();', 3*1000);
throw("Page doesn't have player data, but you are logged in.");
}
// FIXME: handle nia takedown in progress
throw("Couldn't retrieve player data. Are you logged in?");