• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

修訂51750a5f66fc0c977bbfa790f10db100dbf80722 (tree)
時間2022-12-17 00:33:49
作者Adam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Blacklisted the rcon, rcon_logout, and send_password CCMDs from ConsoleCommand.

Change Summary

差異

diff -r 8836885fd432 -r 51750a5f66fc src/cl_main.cpp
--- a/src/cl_main.cpp Thu Dec 15 13:58:54 2022 -0500
+++ b/src/cl_main.cpp Fri Dec 16 10:33:49 2022 -0500
@@ -9391,6 +9391,10 @@
93919391 char szString[1024];
93929392 char szAppend[256];
93939393
9394+ // [AK] This function may not be used by ConsoleCommand.
9395+ if ( ACS_IsCalledFromConsoleCommand( ))
9396+ return;
9397+
93949398 if ( g_ConnectionState != CTS_ACTIVE )
93959399 return;
93969400
@@ -9443,6 +9447,10 @@
94439447 //
94449448 CCMD( send_password )
94459449 {
9450+ // [AK] This function may not be used by ConsoleCommand.
9451+ if ( ACS_IsCalledFromConsoleCommand( ))
9452+ return;
9453+
94469454 if ( argv.argc( ) <= 1 )
94479455 {
94489456 Printf( "Usage: send_password <password>\n" );
@@ -9457,6 +9465,10 @@
94579465 //
94589466 CCMD( rcon_logout )
94599467 {
9468+ // [AK] This function may not be used by ConsoleCommand.
9469+ if ( ACS_IsCalledFromConsoleCommand( ))
9470+ return;
9471+
94609472 if ( g_ConnectionState == CTS_ACTIVE )
94619473 CLIENTCOMMANDS_ChangeRCONStatus( false, NULL );
94629474 }