aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2021-08-29 20:28:23 +0200
committerstonedDiscord <Tukz@gmx.de>2021-08-29 20:28:23 +0200
commit9cd5b55654366f992abec7ac9156c16dea9bbe44 (patch)
tree816491fab3aab11bafd2a7f4c5412776641b08af /webAO/client.js
parent9af8558854edbd5372ebdf7e19dd8f134fabeacc (diff)
add BB packet
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 6f600b0..20006ab 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -193,6 +193,7 @@ class Client extends EventEmitter {
this.on("SM", this.handleSM.bind(this));
this.on("MM", this.handleMM.bind(this));
this.on("BD", this.handleBD.bind(this));
+ this.on("BB", this.handleBB.bind(this));
this.on("KB", this.handleKB.bind(this));
this.on("KK", this.handleKK.bind(this));
this.on("DONE", this.handleDONE.bind(this));
@@ -1176,6 +1177,15 @@ class Client extends EventEmitter {
}
/**
+ * Handles the warning packet
+ * on client this spawns a message box you can't close for 2 seconds
+ * @param {Array} args ban reason
+ */
+ handleBB(args) {
+ alert(safe_tags(args[1]));
+ }
+
+ /**
* Handles the banned packet
* this one is sent when you try to reconnect but you're banned
* @param {Array} args ban reason