aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 4a5d643..f6257e6 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -51,7 +51,7 @@ const fp = new Fingerprint({
// An emulated, semi-unique HDID that is generally safe for HDID bans.
const hdid = fp.get();
-console.log(`Your emulated HDID is ${hdid}`);
+console.info(`Your emulated HDID is ${hdid}`);
let lastICMessageTime = new Date(0);
@@ -129,6 +129,7 @@ class Client extends EventEmitter {
this.on("CI", this.handleCI.bind(this));
this.on("SC", this.handleSC.bind(this));
this.on("EI", this.handleEI.bind(this));
+ this.on("FL", this.handleFL.bind(this));
this.on("LE", this.handleLE.bind(this));
this.on("EM", this.handleEM.bind(this));
this.on("SM", this.handleSM.bind(this));
@@ -821,6 +822,14 @@ class Client extends EventEmitter {
}
/**
+ * With this the server tells us which features it supports
+ * @param {Array} args list of features
+ */
+ handleFL(args) {
+ console.info(args);
+ }
+
+ /**
* Received when the server announces its server info,
* but we use it as a cue to begin retrieving characters.
* @param {Array} args packet arguments