Update aiserver.py

This commit is contained in:
henk717 2021-12-26 02:01:57 +01:00
parent ddd9bded30
commit b9729749ba
1 changed files with 1 additions and 3 deletions

View File

@ -1985,7 +1985,7 @@ def loadsettings():
if("chatmode" in js):
vars.chatmode = js["chatmode"]
if("chatname" in js):
vars.chatmode = js["chatname"]
vars.chatname = js["chatname"]
if("dynamicscan" in js):
vars.dynamicscan = js["dynamicscan"]
if("nopromptgen" in js):
@ -2073,8 +2073,6 @@ def actionsubmit(data, actionmode=0, force_submit=False):
# "Chat" mode
if(vars.chatmode and vars.gamestarted):
print("Chatmode is active")
data = data.strip().lstrip('>')
data = re.sub(r'\n+', ' ', data)
if(len(data)):
data = f"\n{vars.chatname} : {data}\n"