diff --git a/code/idle.js b/code/idle.js index 1d6083e9..37f5bae3 100644 --- a/code/idle.js +++ b/code/idle.js @@ -16,7 +16,7 @@ var idlePoll = function() { setInterval(idlePoll, IDLE_POLL_TIME*1000); -var idleReset = function () { +window.idleReset = function () { // update immediately when the user comes back if(isIdle()) { window.idleTime = 0; @@ -28,7 +28,7 @@ var idleReset = function () { window._idleTimeLimit = MAX_IDLE_TIME; }; -var idleSet = function() { +window.idleSet = function() { // force IITC to idle. used by the mobile app when switching to something else if (!isIdle()) { window._idleTImeLimit = 0; diff --git a/code/player_names.js b/code/player_names.js index ab7f247d..1ec70674 100644 --- a/code/player_names.js +++ b/code/player_names.js @@ -106,3 +106,18 @@ window.loadPlayerNamesForPortal = function(portal_details) { if(reso) getPlayerName(reso.ownerGuid); }); } + + +// test to see if a specific player GUID is a special system account (e.g. __JARVIS__, __ADA__) that shouldn't +// be listed as a player +window.isSystemPlayer = function(guid) { + + switch (guid) { + case '00000000000000000000000000000001.c': + case '00000000000000000000000000000002.c': + return true; + + default: + return false; + } +}