From 88f6e8ca38884c8b6b2c8bbf0d69a7b5e5c8ede3 Mon Sep 17 00:00:00 2001 From: henk717 Date: Mon, 27 Dec 2021 13:32:25 +0100 Subject: [PATCH] Chatmode improvements Blank lines appear often in chatmode so it is best played with blank line removal turned on, this is now forced. Its not compatible with Adventure mode, so they now turn each other off. --- aiserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index 80db8893..3134bbd9 100644 --- a/aiserver.py +++ b/aiserver.py @@ -1866,10 +1866,12 @@ def get_message(msg): refresh_settings() elif(msg['cmd'] == 'setadventure'): vars.adventure = msg['data'] + vars.chatmode = False settingschanged() refresh_settings() elif(msg['cmd'] == 'setchatmode'): vars.chatmode = msg['data'] + vars.adventure = False settingschanged() refresh_settings() elif(msg['cmd'] == 'setdynamicscan'): @@ -2896,7 +2898,7 @@ def applyoutputformatting(txt): if(vars.formatoptns["frmttriminc"] and not vars.chatmode): txt = utils.trimincompletesentence(txt) # Replace blank lines - if(vars.formatoptns["frmtrmblln"]): + if(vars.formatoptns["frmtrmblln"] or vars.chatmode): txt = utils.replaceblanklines(txt) # Remove special characters if(vars.formatoptns["frmtrmspch"]):