fix: gate inline /status stripping

This commit is contained in:
Peter Steinberger
2026-01-13 01:20:52 +00:00
parent 2111d0c653
commit 4f1c6e76fd
2 changed files with 4 additions and 2 deletions

View File

@@ -606,7 +606,9 @@ export async function getReplyFromConfig(
return `${head}${cleanedTail}`;
})();
cleanedBody = stripInlineStatus(cleanedBody).cleaned;
if (allowStatusDirective) {
cleanedBody = stripInlineStatus(cleanedBody).cleaned;
}
sessionCtx.Body = cleanedBody;
sessionCtx.BodyStripped = cleanedBody;