It's probably due to mirc getting info from the ircd for all 27 channels wich may result in disconnect due to excess use of commands wich is common, what you could try is add some sort of delay for joining channels/using commands.