From 5ab9b6d8c451ce3cd24c5dcf3830d7e369ce6e91 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 6 Mar 2002 21:54:00 +0000 Subject: [PATCH] writeln() now logs output (in debug mode), not write(). --- exec/nntpservice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/nntpservice.js b/exec/nntpservice.js index ca6417481f..cb19789618 100644 --- a/exec/nntpservice.js +++ b/exec/nntpservice.js @@ -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"); } -- GitLab