From 7f0fc87d3c79a120fff45a7e6d362107e67b1221 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 16 Feb 2012 23:36:05 +0100 Subject: [PATCH] Include forward channels when bursting bans to servers. Obtained from: ircd-seven (spb) --- src/s_serv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/s_serv.c b/src/s_serv.c index 784be844..e09f484d 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -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; }