Skip to content
This repository was archived by the owner on Mar 31, 2024. It is now read-only.

Commit b00eafe

Browse files
committed
更新run指令输出字数限制,完善#run /help说明文档
1 parent 7ebfc88 commit b00eafe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

BOIT Server/Command_run.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef struct __tagInputSession
7070

7171

7272
//run指令最长输出
73-
#define BOIT_RUN_MAX_OUTPUT 2048
73+
#define BOIT_RUN_MAX_OUTPUT 1024
7474

7575

7676

@@ -261,7 +261,8 @@ int RunCode(pBOIT_SESSION orgboitSession, WCHAR* Msg)
261261
{
262262
//显示详细帮助信息
263263
SendBackMessage(boitSession, L"usage: #run language [/su] [/input] sourcecode");
264-
264+
SendBackMessage(boitSession, L"example:\n\n#run c\n#include<stdio.h>\nint main(){\nprintf(\"hello, bot\");\n}");
265+
SendBackMessage(boitSession, L"使用 /su 以用管理员权限执行指令。使用 /input 以启用输入数据");
265266
ShowSupportLanguageInfo(pCmd, L".cfg", boitSession);
266267
}
267268
else

0 commit comments

Comments
 (0)