diff options
| author | stoned <stoned@SPC.fritz.box> | 2022-01-19 13:51:22 +0100 |
|---|---|---|
| committer | stoned <stoned@SPC.fritz.box> | 2022-01-19 13:51:22 +0100 |
| commit | 56b082d2f83cf246dd017b361bfa95876769469c (patch) | |
| tree | 5a4fee8964e114cc3bf414aa01851ccb1a1d99a3 /webAO | |
| parent | e1d2dfcab519a780361a17aec8130234a79c66e6 (diff) | |
genders are no more
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index c6f2c04..a2d70fb 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -604,7 +604,7 @@ class Client extends EventEmitter { try { msg_nameplate = this.chars[char_id].showname; - msg_blips = this.chars[char_id].gender; + msg_blips = this.chars[char_id].blips; char_chatbox = this.chars[char_id].chat; char_muted = this.chars[char_id].muted; @@ -837,7 +837,7 @@ class Client extends EventEmitter { name: chargs[0], showname: chargs[0], side: "def", - gender: "male", + blips: "male", chat: "", category: "" }; @@ -853,6 +853,7 @@ class Client extends EventEmitter { name: safe_tags(chargs[0]), showname: safe_tags(cini.options.showname), desc: safe_tags(chargs[1]), + blips: safe_tags(cini.options.blips).toLowerCase(), gender: safe_tags(cini.options.gender).toLowerCase(), side: safe_tags(cini.options.side).toLowerCase(), chat: (cini.options.chat==="") ? safe_tags(cini.options.chat).toLowerCase() : safe_tags(cini.options.category).toLowerCase(), @@ -862,6 +863,9 @@ class Client extends EventEmitter { muted: false }; + if(this.chars[charid].blips === "") + this.chars[charid].blips = this.chars[charid].gender; + const iniedit_select = document.getElementById("client_ininame"); iniedit_select.add(new Option(safe_tags(chargs[0]))); |
