fix: gate inline /status stripping

This commit is contained in:
Peter Steinberger committed 2026-01-13 01:53:40 +00:00
1 parent 2111d0c653
commit 4f1c6e76fd
2 files changed
+4 -2

No files matched your search

+3 -1
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;