aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleRD.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets/handlers/handleRD.ts')
-rw-r--r--webAO/packets/handlers/handleRD.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleRD.ts b/webAO/packets/handlers/handleRD.ts
new file mode 100644
index 0000000..780b43f
--- /dev/null
+++ b/webAO/packets/handlers/handleRD.ts
@@ -0,0 +1,18 @@
+import { client } from "../../client";
+
+
+/**
+ * we are asking ourselves what characters there are
+ * @param {Array} args packet arguments
+ */
+export const handleRD = (_args: string[]) => {
+ client.sendSelf("BN#gs4#%");
+ client.sendSelf("DONE#%");
+ const ooclog = <HTMLInputElement>document.getElementById("client_ooclog");
+ ooclog.value = "";
+ ooclog.readOnly = false;
+
+ document.getElementById("client_oocinput")!.style.display = "none";
+ document.getElementById("client_replaycontrols")!.style.display =
+ "inline-block";
+} \ No newline at end of file