Skip to content

Commit 905ac0c

Browse files
Merge branch 'master' into radar-jpg-update
2 parents 5afda0e + e92702c commit 905ac0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Server/mods/deathmatch/logic/CMainConfig.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ bool CMainConfig::Load()
133133
return false;
134134
}
135135

136+
// Strip spaces from beginning and end of server name
137+
m_strServerName = SString(m_strServerName).TrimStart(" ").TrimEnd(" ");
138+
136139
// Grab the forced server ip(s)
137140
GetString(m_pRootNode, "serverip", m_strServerIP);
138141
m_strServerIP = SString(m_strServerIP).Replace(" ", "");

0 commit comments

Comments
 (0)