1
1
forked from 0ad/0ad

Optionnames are in lower case, refs #3604.

This was SVN commit r17860.
This commit is contained in:
elexis 2016-03-10 11:16:15 +00:00
parent b71e7e3538
commit 2305218d9f
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ xpartamupp = "wfgbot20" ; Name of the server-side xmpp client that m
enabledmods = "mod public"
[network]
duplicatePlayernames = false ; Rename joining player to "User (2)" if "User" is already connected, otherwise prohibit join.
duplicateplayernames = false ; Rename joining player to "User (2)" if "User" is already connected, otherwise prohibit join.
[overlay]
fps = "false" ; Show frames per second in top right corner

View File

@ -905,7 +905,7 @@ bool CNetServerWorker::OnAuthenticate(void* context, CFsmEvent* event)
// Either deduplicate or prohibit join if name is in use
bool duplicatePlayernames = false;
CFG_GET_VAL("network.duplicatePlayernames", duplicatePlayernames);
CFG_GET_VAL("network.duplicateplayernames", duplicatePlayernames);
if (duplicatePlayernames)
username = server.DeduplicatePlayerName(username);
else if (std::find_if(