]> jfr.im git - solanum.git/blobdiff - ircd/bandbi.c
send: add sendto_one_multiline_* API
[solanum.git] / ircd / bandbi.c
index 5384840d8abec5e1df43bb4139598333b0875fcc..29a3bfa27d94b0107c7c1448f3a5e38a0755cc60 100644 (file)
@@ -110,7 +110,7 @@ start_bandb(void)
        if(bandb_helper == NULL)
        {
                ilog(L_MAIN, "Unable to start bandb: %s", strerror(errno));
-               sendto_realops_snomask(SNO_GENERAL, L_ALL, "Unable to start bandb: %s",
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb: %s",
                                     strerror(errno));
                return 1;
        }
@@ -226,11 +226,9 @@ bandb_check_kline(struct ConfItem *aconf)
 
        if(aftype != HM_HOST)
        {
-#ifdef RB_IPV6
                if(aftype == HM_IPV6)
                        aftype = AF_INET6;
                else
-#endif
                        aftype = AF_INET;
 
                kconf = find_conf_by_address(aconf->host, NULL, NULL, (struct sockaddr *)&daddr,
@@ -329,7 +327,7 @@ bandb_handle_finish(void)
        struct ConfItem *aconf;
        rb_dlink_node *ptr, *next_ptr;
 
-       clear_out_address_conf_bans();
+       clear_out_address_conf(AC_BANDB);
        clear_s_newconf_bans();
 
        RB_DLINK_FOREACH_SAFE(ptr, next_ptr, bandb_pending.head)
@@ -392,7 +390,7 @@ bandb_handle_failure(rb_helper *helper, char **parv, int parc)
                fprintf(stderr, "bandb - bandb failure: %s\n", parv[1]);
 
        ilog(L_MAIN, "bandb - bandb failure: %s", parv[1]);
-       sendto_realops_snomask(SNO_GENERAL, L_ALL, "bandb - bandb failure: %s", parv[1]);
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "bandb - bandb failure: %s", parv[1]);
        exit(1);
 }
 
@@ -443,7 +441,7 @@ static void
 bandb_restart_cb(rb_helper *helper)
 {
        ilog(L_MAIN, "bandb - bandb_restart_cb called, bandb helper died?");
-       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                             "bandb - bandb_restart_cb called, bandb helper died?");
        if(helper != NULL)
        {