This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
修訂 | 51750a5f66fc0c977bbfa790f10db100dbf80722 (tree) |
---|---|
時間 | 2022-12-17 00:33:49 |
作者 | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Blacklisted the rcon, rcon_logout, and send_password CCMDs from ConsoleCommand.
@@ -9391,6 +9391,10 @@ | ||
9391 | 9391 | char szString[1024]; |
9392 | 9392 | char szAppend[256]; |
9393 | 9393 | |
9394 | + // [AK] This function may not be used by ConsoleCommand. | |
9395 | + if ( ACS_IsCalledFromConsoleCommand( )) | |
9396 | + return; | |
9397 | + | |
9394 | 9398 | if ( g_ConnectionState != CTS_ACTIVE ) |
9395 | 9399 | return; |
9396 | 9400 |
@@ -9443,6 +9447,10 @@ | ||
9443 | 9447 | // |
9444 | 9448 | CCMD( send_password ) |
9445 | 9449 | { |
9450 | + // [AK] This function may not be used by ConsoleCommand. | |
9451 | + if ( ACS_IsCalledFromConsoleCommand( )) | |
9452 | + return; | |
9453 | + | |
9446 | 9454 | if ( argv.argc( ) <= 1 ) |
9447 | 9455 | { |
9448 | 9456 | Printf( "Usage: send_password <password>\n" ); |
@@ -9457,6 +9465,10 @@ | ||
9457 | 9465 | // |
9458 | 9466 | CCMD( rcon_logout ) |
9459 | 9467 | { |
9468 | + // [AK] This function may not be used by ConsoleCommand. | |
9469 | + if ( ACS_IsCalledFromConsoleCommand( )) | |
9470 | + return; | |
9471 | + | |
9460 | 9472 | if ( g_ConnectionState == CTS_ACTIVE ) |
9461 | 9473 | CLIENTCOMMANDS_ChangeRCONStatus( false, NULL ); |
9462 | 9474 | } |