Added mexes patch and hooked it up
Also moved the connecting bit to the irc parser