1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Data sent to server with /RAWQUOTE didn't show up properly in rawlog unless

it ended with \r\n.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2068 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-18 23:29:18 +00:00 committed by cras
parent edf0e479b5
commit c94606e27a

View File

@ -325,8 +325,12 @@ static void server_cmd_timeout(IRC_SERVER_REC *server, GTimeVal *now)
server->wait_cmd.tv_sec = 0;
memcpy(&server->last_cmd, now, sizeof(GTimeVal));
/* add to rawlog without CR+LF */
cmd[len-2] = '\0';
/* add to rawlog without [CR+]LF (/RAWQUOTE might not have
added the CR) */
if (len > 2 && cmd[len-2] == '\r')
cmd[len-2] = '\0';
else if (cmd[len-1] == '\n')
cmd[len-1] = '\0';
rawlog_output(server->rawlog, cmd);
server_redirect_command(server, cmd, redirect);