aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-02 12:04:05 +0200
committersD <stoned@derpymail.org>2020-04-02 12:04:05 +0200
commit8e18260349e57aaed9fd6a4ce77876f0f1423a14 (patch)
tree92ee017e16bc6564ec6538a72493d9f3a73ba809 /webAO/client.js
parent9211eca4316ab10c8064678288228d7541542532 (diff)
it wants an array, set better defaults
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 2612bfc..84b7b87 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -527,10 +527,13 @@ class Client extends EventEmitter {
if(this.chars[char_id].name !== char_name) {
console.info(this.chars[char_id].name + " is iniediting to " + char_name);
- this.handleCharacterInfo(char_name,char_id);
+ const chargs = (char_name + "&" + "filthy iniedtier").split("&");
+ this.handleCharacterInfo(chargs,char_id);
}
} catch (e) {
- //we already set defaults
+ msg_nameplate = args[3];
+ msg_blips = "male";
+ char_muted = false;
console.error("we're still missing some character data");
}
@@ -654,6 +657,7 @@ class Client extends EventEmitter {
} catch (err) {
cini = {};
img.classList.add("noini");
+ console.warn("character " + chargs[0] + " is missing from webAO")
// If it does, give the user a visual indication that the character is unusable
}