aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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