You'll want to /sockread -f, otherwise mIRC won't read in lines not ending in a <crlf>, which I assume is the case for that last line.