diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-08-25 19:06:50 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-08-25 19:06:50 +0200 |
| commit | a6186ff308c844b39d71cfd65e3d3117dbdbedb0 (patch) | |
| tree | 0f7e911375be3fa4d6d4e2d10d936464458f8b29 /webAO | |
| parent | 0cdf6403045d1a28f2faa32a9edf07ea3fb56933 (diff) | |
fix judge actions for non-judges
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/webAO/client.ts b/webAO/client.ts index debd318..2f84277 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -516,9 +516,7 @@ class Client extends EventEmitter { * @param {string} testimony type */ sendRT(testimony: string) { - if (this.chars[this.charID].side === "jud") { - this.sendServer(`RT#${testimony}#%`); - } + this.sendServer(`RT#${testimony}#%`); } /** @@ -1998,16 +1996,16 @@ class Client extends EventEmitter { * position change * @param {string} pos new position */ - handleSP(pos: string) { - updateActionCommands(pos); + handleSP(args: string[]) { + updateActionCommands(args[1]); } /** * show/hide judge controls * @param {number} show either a 1 or a 0 */ - handleJD(show: number) { - if (show === 1) { + handleJD(args: string[]) { + if (Number(args[1]) === 1) { document.getElementById("judge_action").style.display = "inline-table"; document.getElementById("no_action").style.display = "none"; } else { |
