When you read a line into a binvar using the -n switch of /sockread, mirc seems to replace $crlf with two binary 0, which seems wrong since sending an empty line should result in an empty string being read, instead $bvar(&binvar,0) will return 2.

Code:
alias testsr socklisten serv 8000 | sockopen client 127.0.0.1 8000 
on *:socklisten:serv:sockaccept client1 | sockclose serv
on *:sockopen:client:if (!$sockerr) sockwrite -n client
on *:sockread:client1:sockread -n &a | echo -s > $bvar(&a,0) -- $bvar(&a,1-) -- $bvar(&a,1-).text | sockclose client*
/testsr


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