Maybe a way to part all the channels except certain ones.

Like /part -e #specificCHANyouDONTwantToLeave,#OtherChannel

-e standing for exception.