From 0cad011f41fe6cabba1dc6f6186c08556db247d4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 21 Mar 2026 05:20:18 -0400 Subject: Stop using FujiNet's CRLF translation (set it to "none"), do our own CRLF processing. Allows the ~ character to be sent properly. --- src/irc.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/irc.c') diff --git a/src/irc.c b/src/irc.c index 137e66c..c07e666 100644 --- a/src/irc.c +++ b/src/irc.c @@ -663,15 +663,16 @@ static void irc_split_Lines(void) { char *p = rx_buf; for(i = 0; i < rxbuflen; i++) { - msgbuf[msgbuf_len] = *p; - if(*p == CH_EOL) { - // msgbuf[msgbuf_len + 1] = '\0'; - /* do not include the EOL */ - msgbuf[msgbuf_len] = '\0'; - parse_msg(); - msgbuf_len = 0; - } else { - msgbuf_len++; + /* skip ASCII \r character */ + if(*p != 0x0d) { + if(*p == 0x0a) { + /* got ASCII \n */ + msgbuf[msgbuf_len] = '\0'; + parse_msg(); + msgbuf_len = 0; + } else { + msgbuf[msgbuf_len++] = *p; + } } p++; } -- cgit v1.2.3