Skip to content

Commit

Permalink
lowercase strings coming from !nominate
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Sep 20, 2021
1 parent 98ad99a commit 5a5b868
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/sourcemod/scripting/shavit-mapchooser.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1362,11 +1362,14 @@ public Action Command_Nominate(int client, int args)

public Action Command_Nominate_Internal(int client, char mapname[PLATFORM_MAX_PATH])
{
LowercaseString(mapname);

if (g_cvNominateMatches.BoolValue)
{
SMC_NominateMatches(client, mapname);
}
else {
else
{
if(SMC_FindMap(mapname, mapname, sizeof(mapname)))
{
if(StrEqual(mapname, g_cMapName))
Expand Down

0 comments on commit 5a5b868

Please sign in to comment.