From 2ae9375cb7ad03b79c4e13f4c9b2c99144d67975 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 4 Sep 2019 04:03:25 +0000 Subject: [PATCH] Fix Yours property population in GetPlayer response. --- xtrn/lord/lordsrv.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xtrn/lord/lordsrv.js b/xtrn/lord/lordsrv.js index ba44a5c5f7..84dad33057 100644 --- a/xtrn/lord/lordsrv.js +++ b/xtrn/lord/lordsrv.js @@ -475,9 +475,11 @@ function handle_request() { tmph = validate_record(sock, request, 2, 2, false); if (tmph === undefined) return false; + if (pdata[tmph].SourceSystem === sock.LORD.bbs) + pdata[tmph].Yours = true; + else + pdata[tmph].Yours = false; 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'); break; case 'GetState': -- GitLab