aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2025-06-26 18:15:43 +0200
committerstonedDiscord <Tukz@gmx.de>2025-06-26 18:15:44 +0200
commit365a515d4916857518bbffb52af9ac919f0a88d1 (patch)
treeed7cfb0b89eae229d0d3f1fe0188e65588394e77 /webAO/client.ts
parentc057020d19467306509e65198d349d071d68d3d2 (diff)
kinda annoying
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 3aa770c..4d8390a 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -134,6 +134,7 @@ class Client extends EventEmitter {
musics: any;
musics_time: boolean;
callwords: string[];
+ enableCaptcha: boolean;
banned: boolean;
hdid: string;
resources: any;
@@ -179,6 +180,7 @@ class Client extends EventEmitter {
}
};
+ this.enableCaptcha = false;
this.banned = false;
this.hp = [0, 0];
this.playerID = 1;
@@ -247,7 +249,7 @@ class Client extends EventEmitter {
*/
joinServer() {
this.sender.sendServer(`HI#${hdid}#%`);
- if (getCookie("hdid") !== hdid) {
+ if (this.enableCaptcha && getCookie("hdid") !== hdid) {
this.sender.sendServer(getCookie("hdid"));
document.getElementById("client_secondfactor").style.display = "block";
document.getElementById("client_charselect").remove();