Skip to content

Commit 6981048

Browse files
author
prima
committed
fix: Corrected group chat set up to only change or disable it when the WI entry is enabled in the first place
1 parent 52b3a2f commit 6981048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

klite.embd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16355,7 +16355,7 @@ Current version indicated by LITEVER below.
1635516355
}
1635616356

1635716357
// If accessing WI for a character's memory, switch based on the current chat opponent
16358-
if (!!finalCo && (!!wi.comment && !!wi.wigroup) && (wi.comment.endsWith("_imported_memory") && wi.wigroup === wi.comment.replace("_imported_memory", "")))
16358+
if (!!shoulduse && !!finalCo && (!!wi.comment && !!wi.wigroup) && (wi.comment.endsWith("_imported_memory") && wi.wigroup === wi.comment.replace("_imported_memory", "")))
1635916359
{
1636016360
shoulduse = wi.wigroup == finalCo
1636116361
}
@@ -28727,7 +28727,7 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
2872728727
}
2872828728

2872928729
// If accessing WI for a character's memory, switch based on the current chat opponent
28730-
if (!!getChatOpponentForAgent() && (!!wi.comment && !!wi.wigroup) && (wi.comment.endsWith("_imported_memory") && wi.wigroup === wi.comment.replace("_imported_memory", "")))
28730+
if (!!shoulduse && !!getChatOpponentForAgent() && (!!wi.comment && !!wi.wigroup) && (wi.comment.endsWith("_imported_memory") && wi.wigroup === wi.comment.replace("_imported_memory", "")))
2873128731
{
2873228732
shoulduse = wi.wigroup == getChatOpponentForAgent()
2873328733
}

0 commit comments

Comments
 (0)