Fix for submitting memory/AN when memory is empty

This commit is contained in:
Gnome Ann
2021-09-30 10:57:29 -04:00
parent 245ff6d2f3
commit e325197748
2 changed files with 2 additions and 3 deletions

View File

@ -495,8 +495,7 @@ function returnWiList(ar) {
function dosubmit() {
var txt = input_text.val().replace(/\u00a0/g, " ");
console.log(gamestarted)
if(!gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) {
if(!memorymode && !gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) {
return;
}
socket.send({'cmd': 'submit', 'actionmode': adventure ? action_mode : 0, 'data': txt});