parent
b71e7e3538
commit
2305218d9f
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user