This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
Revisão | 420ac83eb02fc7628d89024b75c11bfda25307f4 (tree) |
---|---|
Hora | 2022-10-07 12:22:08 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
sv_hostname is now limited to a maximum length of 160 characters to avoid incredibly long server names.
@@ -93,7 +93,7 @@ | ||
93 | 93 | ! - The server now updates a spectator's lagging status to all clients and the mini lag icon on the scoreboard now shows for spectators. [Kaminsky] |
94 | 94 | ! - By default, the join queue is no longer cleared between levels for all game modes like in duel. The old behaviour can be restored by enabling the new dmflag "sv_dontkeepjoinqueue" which also works in duel. [Kaminsky] |
95 | 95 | ! - Unlagged now restores a player's old height when reconciling them. [Kaminsky] |
96 | -! - sv_hostname is now cleaned up so that any unacceptable characters and trailing crap are removed. [Kaminsky] | |
96 | +! - sv_hostname is now cleaned up so that any unacceptable characters and trailing crap are removed. Also, it's now limited to a maximum length of 160 characters to avoid incredibly long server names. [Kaminsky] | |
97 | 97 | ! - The "fisting" medal is now only awarded if the player frags another player with a melee hitscan attack, or with a projectile or puff that awards the medal, as it should be. [Kaminsky] |
98 | 98 | ! - The "spam" medal is now only awarded if the player frags another player with a projectile or puff that awards the medal, as it should be. [Kaminsky] |
99 | 99 | ! - Blacklisted the connect, disconnect, reconnect, and restart CCMDs from ConsoleCommand. [Kaminsky] |
@@ -85,6 +85,9 @@ | ||
85 | 85 | // [AK] Maximum amount of gametics of recent commands from a client that we can store. |
86 | 86 | #define MAX_RECENT_COMMANDS 15 |
87 | 87 | |
88 | +// [AK] Maximum amount of characters that can be put in sv_hostname. | |
89 | +#define MAX_HOSTNAME_LENGTH 160 | |
90 | + | |
88 | 91 | // This is for the server console, but since we normally can't include that (win32 stuff), |
89 | 92 | // we can just put it here. |
90 | 93 | #define UDF_NAME 0x00000001 |
@@ -774,6 +774,9 @@ | ||
774 | 774 | cleanedHostname += tempHostname[i]; |
775 | 775 | } |
776 | 776 | |
777 | + // [AK] Truncate incredibly long hostnames. Whatever limit that we allow should be more than enough. | |
778 | + cleanedHostname.Truncate( MAX_HOSTNAME_LENGTH ); | |
779 | + | |
777 | 780 | // [AK] Finally, remove any trailing crap from the cleaned hostname string. |
778 | 781 | V_RemoveTrailingCrapFromFString( cleanedHostname ); |
779 | 782 |