From 59e9fda3129cf72fdba65fb145fec3463fd7486d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:20:54 +0300 Subject: [PATCH] /instruct command: don't return current template name if instruct mode is disabled --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 95806394b..2c9d6919e 100644 --- a/public/script.js +++ b/public/script.js @@ -8563,7 +8563,7 @@ async function selectContextCallback(args, name) { async function selectInstructCallback(args, name) { if (!name) { - return power_user.instruct.preset; + return power_user.instruct.enabled ? power_user.instruct.preset : ''; } const quiet = isTrueBoolean(args?.quiet); @@ -9274,7 +9274,7 @@ jQuery(async function () { ], helpString: `
- Selects instruct mode template by name. Gets the current instruct template if no name is provided. + Selects instruct mode template by name. Gets the current instruct template if no name is provided and instruct mode is enabled.
Example: