Skip to content
Snippets Groups Projects
Commit 5ab9b6d8 authored by rswindell's avatar rswindell
Browse files

writeln() now logs output (in debug mode), not write().

parent b16d971b
Branches
Tags
No related merge requests found
......@@ -27,13 +27,13 @@ for(i=0;i<argc;i++)
// Write a string to the client socket
function write(str)
{
if(debug)
log(format("rsp: %s",str));
client.socket.send(str);
}
function writeln(str)
{
if(debug)
log(format("rsp: %s",str));
write(str + "\r\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment