diff --git a/src/sv_ccmds.c b/src/sv_ccmds.c index e85b7b5c7..c87d3a4c6 100644 --- a/src/sv_ccmds.c +++ b/src/sv_ccmds.c @@ -1828,7 +1828,9 @@ void SV_InitOperatorCommands (void) for (i = MIN_LOG; i < MAX_LOG; ++i) Cmd_AddCommand (logs[i].command, logs[i].function); +#ifdef SERVERONLY Cmd_AddCommand ("nslookup", SV_Nslookup_f); +#endif Cmd_AddCommand ("check_maps", SV_Check_maps_f); Cmd_AddCommand ("snap", SV_Snap_f); Cmd_AddCommand ("snapall", SV_SnapAll_f); @@ -1838,10 +1840,12 @@ void SV_InitOperatorCommands (void) Cmd_AddCommand ("status", SV_Status_f); Cmd_AddCommand ("sv_status", SV_Status_f); +#ifdef SERVERONLY //bliP: init -> Cmd_AddCommand ("rmdir", SV_RemoveDirectory_f); Cmd_AddCommand ("rm", SV_RemoveFile_f); Cmd_AddCommand ("ls", SV_ListFiles_f); +#endif Cmd_AddCommand ("mute", SV_Mute_f); Cmd_AddCommand ("cuff", SV_Cuff_f); @@ -1849,12 +1853,14 @@ void SV_InitOperatorCommands (void) Cmd_AddCommand ("penaltylist", SV_ListPenalty_f); Cmd_AddCommand ("penaltyremove", SV_RemovePenalty_f); +#ifdef SERVERONLY #ifndef _WIN32 Cmd_AddCommand ("chmod", SV_ChmodFile_f); #endif //_WIN32 //<- if (SV_CommandLineEnableLocalCommand()) Cmd_AddCommand ("localcommand", SV_LocalCommand_f); +#endif Cmd_AddCommand ("map", SV_Map_f); #ifdef SERVERONLY diff --git a/src/sv_demo.c b/src/sv_demo.c index 47b52a6c3..c37c83640 100644 --- a/src/sv_demo.c +++ b/src/sv_demo.c @@ -1904,7 +1904,9 @@ void SV_MVDInit(void) Cmd_AddCommand ("sv_demoinfo", SV_MVDInfo_f); Cmd_AddCommand ("sv_demoembedinfo", SV_MVDEmbedInfo_f); // not prefixed. +#ifdef SERVERONLY Cmd_AddCommand ("script", SV_Script_f); +#endif Cmd_AddCommand ("sv_usercmdtrace", SV_UserCmdTrace_f);