From 8e18260349e57aaed9fd6a4ce77876f0f1423a14 Mon Sep 17 00:00:00 2001 From: sD Date: Thu, 2 Apr 2020 12:04:05 +0200 Subject: it wants an array, set better defaults --- webAO/client.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'webAO/client.js') 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 } -- cgit