diff options
| author | sD <stoned@derpymail.org> | 2020-01-18 11:49:14 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-01-18 11:49:14 +0100 |
| commit | 50dbbca9c0613f024a84b99134db8248c245c254 (patch) | |
| tree | a2b94a79e88f78fda5c791c461446f05bc291f48 | |
| parent | a937f9bde1ae9f45857550c6067616182f2745a6 (diff) | |
catch holes in ini files
| -rw-r--r-- | webAO/client.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js index 6f11881..e01dcb9 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1088,6 +1088,7 @@ class Client extends EventEmitter { me.side = ini.options.side; updateActionCommands(me.side); for (let i = 1; i <= ini.emotions.number; i++) { + try { const emoteinfo = ini.emotions[i].split("#"); const esfx = ini.soundn[i] || "0"; const esfxd = Number(ini.soundt[i] || 0); @@ -1108,6 +1109,9 @@ class Client extends EventEmitter { alt="${emotes[i].desc}" class="emote_button" onclick="pickEmotion(${i})">`; + } catch(e) { + console.error("missing emote "+i); + } } pickEmotion(1); } |
