You can also turn off auto-join on invite and set up a script to handle that. /help on invite

Code:
on *:invite:#: {
  if ($chan != #badchan) { join $chan }
}


That would auto-join any channel you're invited to except #badchan. Note that this is for people using /invite to invite you. It won't work if the network is forcing you to join a channel. For that, you'd have to /part it on join as mentioned.


Invision Support
#Invision on irc.irchighway.net