Send forward channel when bans are added/removed because of TS/bursts.

If a netburst adds bans or a channel TS change removes bans, +b/-b modes
are generated. Make sure these contain the forward channel, if any.

This appears also broken in ircd-seven.
This commit is contained in:
Jilles Tjoelker 2012-02-17 00:09:39 +01:00
parent 7f0fc87d3c
commit 23f6b63af6
2 changed files with 10 additions and 3 deletions

View file

@ -346,7 +346,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char
{
*forward++ = '\0';
if(*forward == '\0')
forward = NULL;
tlen--, forward = NULL;
}
if(add_id(fakesource_p, chptr, s, forward, banlist, mode_type))
@ -366,6 +366,9 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char
plen = modecount = 0;
}
if (forward != NULL)
forward[-1] = '$';
*mbuf++ = parv[3][0];
arglen = rb_sprintf(pbuf, "%s ", s);
pbuf += arglen;