diff options
| author | stonedDiscord <Tukz@gmx.de> | 2021-10-15 13:40:40 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2021-10-15 13:40:40 +0200 |
| commit | 3d434e25bda6a718b3d528161d97ed22e5bab442 (patch) | |
| tree | ec98d56a170105f58607ccdf78b36c23cacb9adc /webAO/client.js | |
| parent | c46fc68af818359554da8227da312bb59ae570f9 (diff) | |
use category as chatbox if empty
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index da98094..5c00ed8 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -839,7 +839,8 @@ class Client extends EventEmitter { showname: chargs[0], side: "def", gender: "male", - chat: "aa" + chat: "", + category: "" }; cini.options = Object.assign(default_options, cini.options); @@ -855,7 +856,7 @@ class Client extends EventEmitter { desc: safe_tags(chargs[1]), gender: safe_tags(cini.options.gender).toLowerCase(), side: safe_tags(cini.options.side).toLowerCase(), - chat: safe_tags(cini.options.chat).toLowerCase(), + chat: (cini.options.chat==="") ? safe_tags(cini.options.chat).toLowerCase() : safe_tags(cini.options.category).toLowerCase(), evidence: chargs[3], icon: icon, inifile: cini, |
