how about instead of parting, quit them, would be easier to code, and save bandwidth on larger networks as only 1 quit msg is sent from the hub to each user in a channel they are in, not 1 message per user per channel.
also should quit all p-clients, nickserv etc as well.