From 474f6342e8eec905b2610edfee6f9c2fdac2e0c3 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 20 Feb 2016 18:35:35 -0600 Subject: [PATCH] send: we dont actually want tags in sendto_channel_local_butone() --- ircd/send.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/ircd/send.c b/ircd/send.c index 57f3fd78..c512ccb2 100644 --- a/ircd/send.c +++ b/ircd/send.c @@ -795,7 +795,6 @@ sendto_channel_local_butone(struct Client *one, int type, struct Channel *chptr, struct MsgBuf msgbuf; rb_dlink_node *ptr; rb_dlink_node *next_ptr; - unsigned int current_capmask = 0; rb_linebuf_newbuf(&linebuf); @@ -803,6 +802,7 @@ sendto_channel_local_butone(struct Client *one, int type, struct Channel *chptr, va_start(args, pattern); rb_linebuf_putmsg(&linebuf, pattern, &args, NULL); + va_end(args); RB_DLINK_FOREACH_SAFE(ptr, next_ptr, chptr->locmembers.head) { @@ -818,23 +818,10 @@ sendto_channel_local_butone(struct Client *one, int type, struct Channel *chptr, if(type && ((msptr->flags & type) == 0)) continue; - if (target_p->localClient->caps != current_capmask) - { - /* reset the linebuf */ - rb_linebuf_donebuf(&linebuf); - rb_linebuf_newbuf(&linebuf); - - /* render the new linebuf and attach it */ - linebuf_put_msgvbuf(&msgbuf, &linebuf, target_p->localClient->caps, pattern, &args); - current_capmask = target_p->localClient->caps; - } - /* attach the present linebuf to the target */ _send_linebuf(target_p, &linebuf); } - va_end(args); - rb_linebuf_donebuf(&linebuf); }