diff options
| author | stonedDiscord <Tukz@gmx.de> | 2021-08-29 20:28:23 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2021-08-29 20:28:23 +0200 |
| commit | 9cd5b55654366f992abec7ac9156c16dea9bbe44 (patch) | |
| tree | 816491fab3aab11bafd2a7f4c5412776641b08af /webAO/client.js | |
| parent | 9af8558854edbd5372ebdf7e19dd8f134fabeacc (diff) | |
add BB packet
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 10 |
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 |
