[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with channel modes and menubar + a patch
On Fri, 08 Nov 2002 09:14:31 -0800
"Joshua M. Kwan" <joshk@mspencer.net> wrote:
> Changing the channel mode through a /mode #channel [+-][pstnik] will
> not update the menu bar.
> However, using the buttons next to the topic the menu bar will update
> correctly.
> I'll make a patch later today (I think) and submit it... I'm currently
> wrestling with a Scheme program.
>
> -Josh
> --
> XChat-discuss: mailing list for XChat users
> Archive: http://mail.nl.linux.org/xchat-discuss/
>
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);
+ return TRUE;
+ }
if (len < sizeof (tbuf) - 3)
{
len = snprintf (tbuf, sizeof (tbuf), "%s\r\n", raw);
good luck with your scheme program,
James D. Taylor
jtaylor5@bayou.uh.edu
proto-irc_CR-LF.diff