Originally Posted By: Khaled
Sometimes it is difficult to know how far I should go to abstract away technicalities. Does anyone see any issues with the above change? Any backward compatibility issues?

Yes, this would break at least one of my scripts, which uses "on SOCKREAD" to discard everything but the last (non-CRLF-terminated) line and then "on SOCKCLOSE" to read and process only that last line.

Please don't change this. The current behavior is just fine. If anything, the helpfile could be amended to cover correct usage of sockets in a bit more detail. For example, that for line-based processing, /sockread's -f flag should only ever be used from "on SOCKCLOSE". This is one of those things that people seem to get wrong all the time.


Saturn, QuakeNet staff