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.
This commit is contained in:
parent
bbd68020a5
commit
88f6e8ca38
|
@ -1866,10 +1866,12 @@ def get_message(msg):
|
||||||
refresh_settings()
|
refresh_settings()
|
||||||
elif(msg['cmd'] == 'setadventure'):
|
elif(msg['cmd'] == 'setadventure'):
|
||||||
vars.adventure = msg['data']
|
vars.adventure = msg['data']
|
||||||
|
vars.chatmode = False
|
||||||
settingschanged()
|
settingschanged()
|
||||||
refresh_settings()
|
refresh_settings()
|
||||||
elif(msg['cmd'] == 'setchatmode'):
|
elif(msg['cmd'] == 'setchatmode'):
|
||||||
vars.chatmode = msg['data']
|
vars.chatmode = msg['data']
|
||||||
|
vars.adventure = False
|
||||||
settingschanged()
|
settingschanged()
|
||||||
refresh_settings()
|
refresh_settings()
|
||||||
elif(msg['cmd'] == 'setdynamicscan'):
|
elif(msg['cmd'] == 'setdynamicscan'):
|
||||||
|
@ -2896,7 +2898,7 @@ def applyoutputformatting(txt):
|
||||||
if(vars.formatoptns["frmttriminc"] and not vars.chatmode):
|
if(vars.formatoptns["frmttriminc"] and not vars.chatmode):
|
||||||
txt = utils.trimincompletesentence(txt)
|
txt = utils.trimincompletesentence(txt)
|
||||||
# Replace blank lines
|
# Replace blank lines
|
||||||
if(vars.formatoptns["frmtrmblln"]):
|
if(vars.formatoptns["frmtrmblln"] or vars.chatmode):
|
||||||
txt = utils.replaceblanklines(txt)
|
txt = utils.replaceblanklines(txt)
|
||||||
# Remove special characters
|
# Remove special characters
|
||||||
if(vars.formatoptns["frmtrmspch"]):
|
if(vars.formatoptns["frmtrmspch"]):
|
||||||
|
|
Loading…
Reference in New Issue