]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_serv.c
Clarify no_oper_flood option in the reference.conf
[irc/rqf/shadowircd.git] / src / s_serv.c
index e71b1f3016f0503bfeadab0b10deece79fa7c867..2569d562e80bbb501e05281765695c7eddece0ce 100644 (file)
@@ -431,7 +431,8 @@ burst_ban(struct Client *client_p)
                         */
                        rb_strlcpy(operbuf, aconf->info.oper, sizeof buf);
                        p = strrchr(operbuf, '{');
-                       if (operbuf + sizeof operbuf - p > (ptrdiff_t)(melen + 2))
+                       if (p != NULL &&
+                                       operbuf + sizeof operbuf - p > (ptrdiff_t)(melen + 2))
                        {
                                memcpy(p + 1, me.name, melen);
                                p[melen + 1] = '}';
@@ -439,9 +440,8 @@ burst_ban(struct Client *client_p)
                                oper = operbuf;
                        }
                }
-               sendto_one(client_p, ":%s BAN %c %s %s %s %lu %d %d %s :%s%s%s",
+               sendto_one(client_p, ":%s BAN %s %s %s %lu %d %d %s :%s%s%s",
                                me.id,
-                               aconf->status & CONF_ILLEGAL ? '-' : '+',
                                type,
                                aconf->user ? aconf->user : "*", aconf->host,
                                (unsigned long)aconf->created,