Skip to content
Snippets Groups Projects
Commit 2ae9375c authored by deuce's avatar deuce
Browse files

Fix Yours property population in GetPlayer response.

parent 25d59bb4
No related branches found
No related tags found
No related merge requests found
...@@ -475,9 +475,11 @@ function handle_request() { ...@@ -475,9 +475,11 @@ function handle_request() {
tmph = validate_record(sock, request, 2, 2, false); tmph = validate_record(sock, request, 2, 2, false);
if (tmph === undefined) if (tmph === undefined)
return false; return false;
if (pdata[tmph].SourceSystem === sock.LORD.bbs)
pdata[tmph].Yours = true;
else
pdata[tmph].Yours = false;
tmph = JSON.stringify(pdata[tmph], whitelist); tmph = JSON.stringify(pdata[tmph], whitelist);
if (tmph.SourceSystem === sock.LORD.bbs)
tmph.Yours = true;
sock.LORD_write('PlayerRecord '+tmph.length+'\r\n'+tmph+'\r\n'); sock.LORD_write('PlayerRecord '+tmph.length+'\r\n'+tmph+'\r\n');
break; break;
case 'GetState': case 'GetState':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment