diff options
| author | stonedDiscord <stoned@derpymail.org> | 2019-08-26 16:07:17 +0200 |
|---|---|---|
| committer | stonedDiscord <stoned@derpymail.org> | 2019-08-26 16:07:17 +0200 |
| commit | 308f9fe3bba68d673d21ffaf9211563aaf880f12 (patch) | |
| tree | d2785110142ad0613ab2274da004c46a7e4960d6 | |
| parent | 9067de3b7e8dac54e57bf63f44be2849f24124a9 (diff) | |
convert settings to lowercase because some people put SOund in their content
| -rw-r--r-- | webAO/client.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webAO/client.js b/webAO/client.js index 1a5ad10..ec12c13 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -885,13 +885,13 @@ class Client extends EventEmitter { emotesList.style.display = ""; const data = await request(AO_HOST + "characters/" + escape(this.character.name.toLowerCase()) + "/char.ini"); - const ini = INI.parse(data); - me.side = ini.Options.side; + const ini = INI.parse(data.toLowerCase()); + me.side = ini.options.side; updateActionCommands(me.side); - for (let i = 1; i <= ini.Emotions.number; i++) { - const emoteinfo = ini.Emotions[i].split("#"); - const esfx = ini.SoundN[i] ? ini.SoundN[i] : "0"; - const esfxd = ini.SoundT[i] ? ini.SoundT[i] : "0"; + for (let i = 1; i <= ini.emotions.number; i++) { + const emoteinfo = ini.emotions[i].split("#"); + const esfx = ini.soundn[i] ? ini.soundn[i] : "0"; + const esfxd = ini.soundt[i] ? ini.soundt[i] : "0"; // Make sure the asset server is case insensitive, or that everything on it is lowercase emotes[i] = { desc: emoteinfo[0].toLowerCase(), |
