Are you using /sockread with a %variable and no -f switch (or binvars with just the -n switch)? If you are, then that's why.

From the mIRC helpfile:
/sockread [-fn] [numbytes] <%var|&binvar>

If you specify a %var variable, a line of text ending with a Carriage Return/LineFeed is read into %var. The $crlf are stripped off (this may result in %var being $null if the line only consisted of $crlf).

If you specify the -f switch with a %var variable, this forces mIRC to fill the %var variable with whatever text is in the receive buffer, even if it doesn't end in a $crlf.

The -n switch allows you to read a $crlf terminated line into a &binvar. If the incoming line does not contain a $crlf, no bytes will be read into &binvar, unless you specify the -f switch, which forces the read (same as when reading into %vars).


You might like to try binvars, or the -f switch.

Last edited by Collective; 18/01/04 01:28 AM.