Using /sockread -f inside on sockread isn't what you need. Please read the whole tutorial about how to properly read from a socket, you must not use -f inside on sockread, you should rather use it from on sockclose.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel