According to RFC 2812, IRC servers are supposed to interpret joining 0 (not #0) as parting all channels. This is not a client feature, which can be seen by looking at mIRC's debug output; mIRC doesn't send a part message, it sends "JOIN 0". Commas separate channel names in a join message, so the second channel name in JOIN #1,000 is 000.