I think capping it was a good idea. Kinda hard to tell exactly where it is from the pic.
Is your car a turbo? If it is the previous owner may have added a boost gauge via that tee piece.
Describe what the two ends on the tee piece hoses connect to if you can. Or take another pic.