public void OnInvitedToGame(string connectCommand) { try { ToolBox.ParseConnectCommand(ToolBox.SplitCommand(connectCommand), out ConnectName, out ConnectEndpoint, out ConnectLobby); } catch (IndexOutOfRangeException e) { #if DEBUG DebugConsole.ThrowError($"Failed to parse a Steam friend's connect invitation command ({connectCommand})", e); #else DebugConsole.Log($"Failed to parse a Steam friend's connect invitation command ({connectCommand})\n" + e.StackTrace.CleanupStackTrace()); #endif ConnectName = null; ConnectEndpoint = null; ConnectLobby = 0; } DebugConsole.NewMessage(ConnectName + ", " + ConnectEndpoint, Color.Yellow); }