mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
Include forward channels when bursting bans to servers.
Obtained from: ircd-seven (spb)
This commit is contained in:
parent
65b8d06c71
commit
7f0fc87d3c
1 changed files with 5 additions and 2 deletions
|
@ -500,7 +500,7 @@ burst_modes_TS6(struct Client *client_p, struct Channel *chptr,
|
|||
{
|
||||
banptr = ptr->data;
|
||||
|
||||
tlen = strlen(banptr->banstr) + 1;
|
||||
tlen = strlen(banptr->banstr) + (banptr->forward ? strlen(banptr->forward) + 1 : 0) + 1;
|
||||
|
||||
/* uh oh */
|
||||
if(cur_len + tlen > BUFSIZE - 3)
|
||||
|
@ -519,7 +519,10 @@ burst_modes_TS6(struct Client *client_p, struct Channel *chptr,
|
|||
t = buf + mlen;
|
||||
}
|
||||
|
||||
rb_sprintf(t, "%s ", banptr->banstr);
|
||||
if (banptr->forward)
|
||||
rb_sprintf(t, "%s$%s ", banptr->banstr, banptr->forward);
|
||||
else
|
||||
rb_sprintf(t, "%s ", banptr->banstr);
|
||||
t += tlen;
|
||||
cur_len += tlen;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue