Ok, two bathrooms, two lights. Both are on the same line. Bathroom B's lighting and switch hasn't been tampered with. Everything is happening because of Bathroom A.
In bathroom A, I have the light, an outlet, and a switch. Previously, the outlet was always on. Then I went to replace the light fixture, forgot to label the wires, and all hell broke out (not really, I'm just really confused now).
Right now, Bathroom A's light fixture box has four sets of wires coming from it. One is for the bathroom fan, one for the light fixture going to bathroom B's light, one that the power is coming from and one that I'm assuming is for the switch?
I cannot for the life of me figure out how to reconnect these wires so that Bathroom A's switch controls only Bathroom A's fan and light. I've try to reconnect everything, but it only slightly worked -- A's switch controlled everything: A's outlet, A's fan, A's light, B's light (it overrides B's switch).