Skip to content

Commit

Permalink
Remove invalid filename characters from hosted game names, so they do…
Browse files Browse the repository at this point in the history
…n't freeze OCTGN when trying to join an affected game.
  • Loading branch information
brine authored and kellyelton committed Nov 8, 2023
1 parent 9741ace commit a8e5fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octgnFX/Octgn.JodsEngine/Play/State/GameEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public void OnStart() {
return;
}

Program.GameEngine.History.Name = _gameName;
Program.GameEngine.History.Name = string.Concat(_gameName.Split(Path.GetInvalidFileNameChars()));

if (_historyPath == null) {
var dir = new DirectoryInfo(Config.Instance.Paths.GameHistoryPath);
Expand Down
2 changes: 1 addition & 1 deletion recentchanges.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@

Fixed a bug causing OCTGN to hang if trying to join a game with invalid characters in the lobby name

0 comments on commit a8e5fdf

Please sign in to comment.