0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

send: we dont actually want tags in sendto_channel_local_butone()

This commit is contained in:
William Pitcock 2016-02-20 18:35:35 -06:00
parent c8c3ac2440
commit 474f6342e8

View file

@ -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);
}