Hmm, Okay I said this wrong.
Basically, I connect to different networks, which have different channels, when I disconnect from one network, I want to close the channels that I was on from that network when connecting to the other network.
Now, In the perform I put a /partall, but normally when I connect to another network, it says "You are not on that channel" and doesnt close the channel.