mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-13 20:00:16 +00:00
Merge branch 'v26'
This commit is contained in:
@@ -79,8 +79,8 @@ export class MapPlaylist {
|
||||
|
||||
// Create the default public game config (from your GameManager)
|
||||
return {
|
||||
donateGold: false,
|
||||
donateTroops: false,
|
||||
donateGold: mode === GameMode.Team,
|
||||
donateTroops: mode === GameMode.Team,
|
||||
gameMap: map,
|
||||
maxPlayers: config.lobbyMaxPlayers(map, mode, playerTeams),
|
||||
gameType: GameType.Public,
|
||||
|
||||
@@ -41,6 +41,12 @@ export class PrivilegeCheckerImpl implements PrivilegeChecker {
|
||||
return { type: "forbidden", reason: "invalid color: " + e.message };
|
||||
}
|
||||
}
|
||||
if (refs.flag) {
|
||||
cosmetics.flag = cosmetics.flag = refs.flag.replace(
|
||||
/[^a-z0-9-_ ()]/gi,
|
||||
"",
|
||||
);
|
||||
}
|
||||
|
||||
return { type: "allowed", cosmetics };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user