Remove the -n switch on your /sockwrite which is sending an extra $crlf at the end.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel