mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
edf0e479b5
commit
c94606e27a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user