[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with channel modes and menubar + a patch
On Fri, 8 Nov 2002 15:46:20 -0600
"James D. Taylor" <jtaylor5@bayou.uh.edu> wrote:
> See if this patch to src/common/proto-irc.c fixes the problem.
> BTW, what IRC server/software are you having the problem with?
> I don't think this patch will solve it, but it needed to be fixed anyway..
>
>
> --- proto-irc.c 2002-11-08 15:25:23.000000000 -0600
> +++ proto-irc.orig.c 2002-11-08 15:24:19.000000000 -0600
> @@ -249,6 +249,12 @@ irc_raw (server *serv, char *raw)
> if (*raw)
> {
> len = strlen (raw);
> + if (len > 2 && raw[len-2] == '\r' && raw[len-1] == '\n')
> + {
> + /* no need to append a CR-LF pair */
> + tcp_send_len (serv, raw, len);
Ummmm.. Anything sent to irc_raw already has \r\n at the end.
What's this for?
--
Peter Zelezny.
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/