mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for submitting memory/AN when memory is empty
This commit is contained in:
@ -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});
|
||||
|
Reference in New Issue
Block a user