From 3d434e25bda6a718b3d528161d97ed22e5bab442 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 15 Oct 2021 13:40:40 +0200 Subject: use category as chatbox if empty --- webAO/client.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webAO') 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, -- cgit