aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-18 20:56:48 +0100
committersD <stoned@derpymail.org>2019-12-18 20:56:48 +0100
commitff947c36cc35169826a78da6ed47456edf109ec4 (patch)
tree703f8b329dc914481d30a95cec3674ddb34009f8 /webAO
parent58fe559f92081ef1ffe08f4244f940e148edf86c (diff)
more fallbacks for ini files
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index d8ad42b..7549e2d 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -552,6 +552,8 @@ class Client extends EventEmitter {
} catch(err) {
cini = {};
}
+ if (cini.options === undefined)
+ cini.options = {}
if (cini.options.name === undefined)
cini.options.name = chargs[0].toLowerCase();
if (cini.options.showname === undefined)