Unify helper snotes and make netwide.

This commit is contained in:
Unit 193 2022-10-21 02:47:15 -04:00 committed by Doug Freed
parent 06c5309534
commit f085388a74
4 changed files with 13 additions and 7 deletions

View file

@ -224,11 +224,11 @@ cmd_oper_warn(int parc, char **parv)
switch(*parv[1])
{
case 'D': /* Debug */
sendto_realops_snomask(SNO_DEBUG, L_ALL, "authd debug: %s", parv[2]);
sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "authd debug: %s", parv[2]);
idebug("authd: %s", parv[2]);
break;
case 'I': /* Info */
sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd info: %s", parv[2]);
sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "authd info: %s", parv[2]);
inotice("authd: %s", parv[2]);
break;
case 'W': /* Warning */
@ -383,8 +383,8 @@ authd_abort_client(struct Client *client_p)
static void
restart_authd_cb(rb_helper * helper)
{
iwarn("authd: restart_authd_cb called, authd died?");
sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd: restart_authd_cb called, authd died?");
iwarn("authd helper died - attempting to restart");
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "authdd helper died - attempting to restart");
if(helper != NULL)
{

View file

@ -104,11 +104,13 @@ start_bandb(void)
if(bandb_helper == NULL)
{
ilog(L_MAIN, "Unable to start bandb: %s", strerror(errno));
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb: %s",
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb helper: %s",
strerror(errno));
return 1;
}
ilog(L_MAIN, "bandb helper started");
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "bandb helper started");
rb_helper_run(bandb_helper);
return 0;
}
@ -434,9 +436,9 @@ bandb_rehash_bans(void)
static void
bandb_restart_cb(rb_helper *helper)
{
ilog(L_MAIN, "bandb - bandb_restart_cb called, bandb helper died?");
ilog(L_MAIN, "bandb helper died - attempting to restart");
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"bandb - bandb_restart_cb called, bandb helper died?");
"bandb helper died - attempting to restart");
if(helper != NULL)
{
rb_helper_close(helper);

View file

@ -336,6 +336,8 @@ start_ssldaemon(int count)
ssl_do_pipe(P2, ctl);
}
ilog(L_MAIN, "ssld helper started");
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "ssld helper started");
return started;
}

View file

@ -322,6 +322,8 @@ start_wsockd(int count)
ws_do_pipe(P2, ctl);
}
ilog(L_MAIN, "wsockd helper started");
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "wsockd helper started");
return started;
}