make more snotes L_NETWIDE

This commit is contained in:
jess 2020-11-08 19:30:41 +00:00 committed by GitHub
parent d295a3986d
commit a922755512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 194 additions and 170 deletions

View file

@ -141,13 +141,13 @@ setfilter(const char *check, const char *data, const char **error)
if (!strcasecmp(data, "disable")) { if (!strcasecmp(data, "disable")) {
filter_enable = 0; filter_enable = 0;
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Filtering disabled."); "Filtering disabled.");
return 0; return 0;
} }
if (!strcasecmp(data, "enable")) { if (!strcasecmp(data, "enable")) {
filter_enable = 1; filter_enable = 1;
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Filtering enabled."); "Filtering enabled.");
return 0; return 0;
} }
@ -217,7 +217,7 @@ setfilter(const char *check, const char *data, const char **error)
} }
state = FILTER_LOADED; state = FILTER_LOADED;
filter_db = db; filter_db = db;
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"New filters loaded."); "New filters loaded.");
rb_free(filter_data); rb_free(filter_data);
filter_data = 0; filter_data = 0;
@ -408,7 +408,7 @@ filter_msg_user(void *data_)
data->approved = 1; data->approved = 1;
} }
if (r & ACT_ALARM) { if (r & ACT_ALARM) {
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"FILTER: %s!%s@%s [%s]", "FILTER: %s!%s@%s [%s]",
s->name, s->username, s->host, s->sockhost); s->name, s->username, s->host, s->sockhost);
} }
@ -449,7 +449,7 @@ filter_msg_channel(void *data_)
data->approved = 1; data->approved = 1;
} }
if (r & ACT_ALARM) { if (r & ACT_ALARM) {
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"FILTER: %s!%s@%s [%s]", "FILTER: %s!%s@%s [%s]",
s->name, s->username, s->host, s->sockhost); s->name, s->username, s->host, s->sockhost);
} }

View file

@ -615,7 +615,7 @@ heal_nick(struct Client *source_p, struct Client *target_p)
{ {
if (rb_dlinkFindDestroy(target_p, &hurt_state.hurt_clients)) if (rb_dlinkFindDestroy(target_p, &hurt_state.hurt_clients))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s used HEAL on %s", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s used HEAL on %s",
get_oper_name(source_p), get_client_name(target_p, HIDE_IP)); get_oper_name(source_p), get_client_name(target_p, HIDE_IP));
sendto_one_notice(target_p, ":HURT restriction temporarily removed by operator"); sendto_one_notice(target_p, ":HURT restriction temporarily removed by operator");
sendto_one_notice(source_p, ":HURT restriction on %s temporarily removed", target_p->name); sendto_one_notice(source_p, ":HURT restriction on %s temporarily removed", target_p->name);

View file

@ -125,7 +125,7 @@ check_new_user(void *vdata)
return; return;
} }
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"KLINE active for %s", "KLINE active for %s",
get_client_name(source_p, HIDE_IP)); get_client_name(source_p, HIDE_IP));

View file

@ -105,7 +105,7 @@ start_authd(void)
{ {
ierror("Unable to execute authd in %s or %s/bin", ierror("Unable to execute authd in %s or %s/bin",
ircd_paths[IRCD_PATH_LIBEXEC], ConfigFileEntry.dpath); ircd_paths[IRCD_PATH_LIBEXEC], ConfigFileEntry.dpath);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unable to execute authd in %s or %s/bin", "Unable to execute authd in %s or %s/bin",
ircd_paths[IRCD_PATH_LIBEXEC], ConfigFileEntry.dpath); ircd_paths[IRCD_PATH_LIBEXEC], ConfigFileEntry.dpath);
return 1; return 1;
@ -127,12 +127,12 @@ start_authd(void)
if(authd_helper == NULL) if(authd_helper == NULL)
{ {
ierror("Unable to start authd helper: %s", strerror(errno)); ierror("Unable to start authd helper: %s", strerror(errno));
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Unable to start authd helper: %s", strerror(errno)); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start authd helper: %s", strerror(errno));
return 1; return 1;
} }
ilog(L_MAIN, "authd helper started"); ilog(L_MAIN, "authd helper started");
sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd helper started"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "authd helper started");
rb_helper_run(authd_helper); rb_helper_run(authd_helper);
return 0; return 0;
} }

View file

@ -110,7 +110,7 @@ start_bandb(void)
if(bandb_helper == NULL) if(bandb_helper == NULL)
{ {
ilog(L_MAIN, "Unable to start bandb: %s", strerror(errno)); 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)); strerror(errno));
return 1; return 1;
} }
@ -390,7 +390,7 @@ bandb_handle_failure(rb_helper *helper, char **parv, int parc)
fprintf(stderr, "bandb - bandb failure: %s\n", parv[1]); fprintf(stderr, "bandb - bandb failure: %s\n", parv[1]);
ilog(L_MAIN, "bandb - bandb failure: %s", 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); exit(1);
} }
@ -441,7 +441,7 @@ static void
bandb_restart_cb(rb_helper *helper) bandb_restart_cb(rb_helper *helper)
{ {
ilog(L_MAIN, "bandb - bandb_restart_cb called, bandb helper died?"); 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?"); "bandb - bandb_restart_cb called, bandb helper died?");
if(helper != NULL) if(helper != NULL)
{ {

View file

@ -797,7 +797,7 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
break; break;
default: default:
sendto_realops_snomask(SNO_GENERAL, L_ALL, "chm_ban() called with unknown type!"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "chm_ban() called with unknown type!");
return; return;
} }

View file

@ -399,7 +399,7 @@ check_pings_list(rb_dlink_list * list)
{ {
if(IsServer(client_p)) if(IsServer(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"No response from %s, closing link", "No response from %s, closing link",
client_p->name); client_p->name);
ilog(L_SERVER, ilog(L_SERVER,
@ -466,7 +466,7 @@ check_unknowns_list(rb_dlink_list * list)
{ {
if(IsAnyServer(client_p)) if(IsAnyServer(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"No response from %s, closing link", "No response from %s, closing link",
client_p->name); client_p->name);
ilog(L_SERVER, ilog(L_SERVER,
@ -548,7 +548,7 @@ check_klines(void)
{ {
if(IsExemptKline(client_p)) if(IsExemptKline(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"KLINE over-ruled for %s, client is kline_exempt [%s@%s]", "KLINE over-ruled for %s, client is kline_exempt [%s@%s]",
get_client_name(client_p, HIDE_IP), get_client_name(client_p, HIDE_IP),
aconf->user, aconf->host); aconf->user, aconf->host);
@ -722,7 +722,7 @@ check_xlines(void)
{ {
if(IsExemptKline(client_p)) if(IsExemptKline(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"XLINE over-ruled for %s, client is kline_exempt [%s]", "XLINE over-ruled for %s, client is kline_exempt [%s]",
get_client_name(client_p, HIDE_IP), get_client_name(client_p, HIDE_IP),
aconf->host); aconf->host);
@ -772,11 +772,11 @@ resv_nick_fnc(const char *mask, const char *reason, int temp_time)
nick = client_p->id; nick = client_p->id;
/* Tell opers. */ /* Tell opers. */
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"RESV forced nick change for %s!%s@%s to %s; nick matched [%s] (%s)", "RESV forced nick change for %s!%s@%s to %s; nick matched [%s] (%s)",
client_p->name, client_p->username, client_p->host, nick, mask, reason); client_p->name, client_p->username, client_p->host, nick, mask, reason);
sendto_realops_snomask(SNO_NCHANGE, L_ALL, sendto_realops_snomask(SNO_NCHANGE, L_NETWIDE,
"Nick change: From %s to %s [%s@%s]", "Nick change: From %s to %s [%s@%s]",
client_p->name, nick, client_p->username, client_p->host); client_p->name, nick, client_p->username, client_p->host);
@ -1301,7 +1301,7 @@ exit_aborted_clients(void *unused)
rb_dlinkDelete(ptr, &abort_list); rb_dlinkDelete(ptr, &abort_list);
if(IsAnyServer(abt->client)) if(IsAnyServer(abt->client))
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Closing link to %s: %s", "Closing link to %s: %s",
abt->client->name, abt->notice); abt->client->name, abt->notice);
@ -2135,7 +2135,7 @@ error_exit_client(struct Client *client_p, int error)
{ {
if(error == 0) if(error == 0)
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) && !IsServer(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Server %s closed the connection", "Server %s closed the connection",
client_p->name); client_p->name);
@ -2144,7 +2144,7 @@ error_exit_client(struct Client *client_p, int error)
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) && !IsServer(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Lost connection to %s: %s", "Lost connection to %s: %s",
client_p->name, strerror(current_error)); client_p->name, strerror(current_error));
ilog(L_SERVER, "Lost connection to %s: %s", ilog(L_SERVER, "Lost connection to %s: %s",

View file

@ -420,7 +420,7 @@ get_or_create_channel(struct Client *client_p, const char *chname, bool *isnew)
char *t; char *t;
if(IsServer(client_p)) if(IsServer(client_p))
{ {
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"*** Long channel name from %s (%d > %d): %s", "*** Long channel name from %s (%d > %d): %s",
client_p->name, len, CHANNELLEN, s); client_p->name, len, CHANNELLEN, s);
} }

View file

@ -296,7 +296,7 @@ check_rehash(void *unused)
if(doremotd) if(doremotd)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Got signal SIGUSR1, reloading ircd motd file"); "Got signal SIGUSR1, reloading ircd motd file");
cache_user_motd(); cache_user_motd();
doremotd = false; doremotd = false;

View file

@ -185,7 +185,7 @@ inetport(struct Listener *listener)
} }
if (F == NULL) { if (F == NULL) {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Cannot open socket for listener on %s port %d", "Cannot open socket for listener on %s port %d",
listener->sctp ? "SCTP" : "TCP", listener->sctp ? "SCTP" : "TCP",
get_listener_port(listener)); get_listener_port(listener));
@ -203,7 +203,7 @@ inetport(struct Listener *listener)
if (ret) { if (ret) {
errstr = strerror(rb_get_sockerr(F)); errstr = strerror(rb_get_sockerr(F));
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Cannot bind for listener on %s port %d: %s", "Cannot bind for listener on %s port %d: %s",
listener->sctp ? "SCTP" : "TCP", listener->sctp ? "SCTP" : "TCP",
get_listener_port(listener), errstr); get_listener_port(listener), errstr);
@ -217,7 +217,7 @@ inetport(struct Listener *listener)
if(rb_listen(F, SOMAXCONN, listener->defer_accept)) if(rb_listen(F, SOMAXCONN, listener->defer_accept))
{ {
errstr = strerror(rb_get_sockerr(F)); errstr = strerror(rb_get_sockerr(F));
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Cannot listen() for listener on %s port %d: %s", "Cannot listen() for listener on %s port %d: %s",
listener->sctp ? "SCTP" : "TCP", listener->sctp ? "SCTP" : "TCP",
get_listener_port(listener), errstr); get_listener_port(listener), errstr);
@ -609,7 +609,7 @@ accept_precallback(rb_fde_t *F, struct sockaddr *addr, rb_socklen_t addrlen, voi
*/ */
if((last_oper_notice + 20) <= rb_current_time()) if((last_oper_notice + 20) <= rb_current_time())
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"All connections in use. (%s)", "All connections in use. (%s)",
get_listener_name(listener)); get_listener_name(listener));
last_oper_notice = rb_current_time(); last_oper_notice = rb_current_time();

View file

@ -297,7 +297,7 @@ load_one_module(const char *path, int origin, bool coremodule)
} }
} }
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Cannot locate module %s", path); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Cannot locate module %s", path);
if (server_state_foreground) if (server_state_foreground)
ierror("cannot locate module %s", path); ierror("cannot locate module %s", path);
@ -401,7 +401,7 @@ unload_one_module(const char *name, bool warn)
idx = serv_capindex; idx = serv_capindex;
break; break;
default: default:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unknown/unsupported CAP index found of type %d on capability %s when unloading %s", "Unknown/unsupported CAP index found of type %d on capability %s when unloading %s",
m->cap_index, m->cap_name, mod->name); m->cap_index, m->cap_name, mod->name);
ilog(L_MAIN, ilog(L_MAIN,
@ -416,7 +416,7 @@ unload_one_module(const char *name, bool warn)
break; break;
} }
default: default:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unknown/unsupported MAPI version %d when unloading %s!", "Unknown/unsupported MAPI version %d when unloading %s!",
mod->mapi_version, mod->name); mod->mapi_version, mod->name);
ilog(L_MAIN, "Unknown/unsupported MAPI version %d when unloading %s!", ilog(L_MAIN, "Unknown/unsupported MAPI version %d when unloading %s!",
@ -434,7 +434,7 @@ unload_one_module(const char *name, bool warn)
if(warn) if(warn)
{ {
ilog(L_MAIN, "Module %s unloaded", name); ilog(L_MAIN, "Module %s unloaded", name);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Module %s unloaded", name); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Module %s unloaded", name);
} }
return true; return true;
@ -469,7 +469,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
{ {
const char *err = lt_dlerror(); const char *err = lt_dlerror();
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Error loading module %s: %s", mod_displayname, err); "Error loading module %s: %s", mod_displayname, err);
ilog(L_MAIN, "Error loading module %s: %s", mod_displayname, err); ilog(L_MAIN, "Error loading module %s: %s", mod_displayname, err);
rb_free(mod_displayname); rb_free(mod_displayname);
@ -487,7 +487,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
&& (mapi_version = (int *) (uintptr_t) lt_dlsym(tmpptr, "__mheader")) == NULL) && (mapi_version = (int *) (uintptr_t) lt_dlsym(tmpptr, "__mheader")) == NULL)
|| MAPI_MAGIC(*mapi_version) != MAPI_MAGIC_HDR) || MAPI_MAGIC(*mapi_version) != MAPI_MAGIC_HDR)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Data format error: module %s has no MAPI header.", "Data format error: module %s has no MAPI header.",
mod_displayname); mod_displayname);
ilog(L_MAIN, "Data format error: module %s has no MAPI header.", mod_displayname); ilog(L_MAIN, "Data format error: module %s has no MAPI header.", mod_displayname);
@ -505,7 +505,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
{ {
ilog(L_MAIN, "Module %s indicated failure during load.", ilog(L_MAIN, "Module %s indicated failure during load.",
mod_displayname); mod_displayname);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Module %s indicated failure during load.", "Module %s indicated failure during load.",
mod_displayname); mod_displayname);
lt_dlclose(tmpptr); lt_dlclose(tmpptr);
@ -557,7 +557,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
idx = serv_capindex; idx = serv_capindex;
break; break;
default: default:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unknown/unsupported CAP index found of type %d on capability %s when loading %s", "Unknown/unsupported CAP index found of type %d on capability %s when loading %s",
m->cap_index, m->cap_name, mod_displayname); m->cap_index, m->cap_name, mod_displayname);
ilog(L_MAIN, ilog(L_MAIN,
@ -577,7 +577,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
{ {
ilog(L_MAIN, "Module %s indicated failure during load.", ilog(L_MAIN, "Module %s indicated failure during load.",
mod_displayname); mod_displayname);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Module %s indicated failure during load.", "Module %s indicated failure during load.",
mod_displayname); mod_displayname);
if(mheader->mapi_cap_list) if(mheader->mapi_cap_list)
@ -619,7 +619,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
delta /= 86400; delta /= 86400;
iwarn("Module %s build date is out of sync with ircd build date by %ld days, expect problems", iwarn("Module %s build date is out of sync with ircd build date by %ld days, expect problems",
mod_displayname, delta); mod_displayname, delta);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Module %s build date is out of sync with ircd build date by %ld days, expect problems", "Module %s build date is out of sync with ircd build date by %ld days, expect problems",
mod_displayname, delta); mod_displayname, delta);
} }
@ -660,7 +660,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
default: default:
ilog(L_MAIN, "Module %s has unknown/unsupported MAPI version %d.", ilog(L_MAIN, "Module %s has unknown/unsupported MAPI version %d.",
mod_displayname, MAPI_VERSION(*mapi_version)); mod_displayname, MAPI_VERSION(*mapi_version));
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Module %s has unknown/unsupported MAPI version %d.", "Module %s has unknown/unsupported MAPI version %d.",
mod_displayname, *mapi_version); mod_displayname, *mapi_version);
lt_dlclose(tmpptr); lt_dlclose(tmpptr);
@ -703,7 +703,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
break; break;
} }
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Module %s [version: %s; MAPI version: %d; origin: %s; description: \"%s\"] loaded at %p", "Module %s [version: %s; MAPI version: %d; origin: %s; description: \"%s\"] loaded at %p",
mod_displayname, ver, MAPI_VERSION(*mapi_version), o, description, mod_displayname, ver, MAPI_VERSION(*mapi_version), o, description,
(void *) tmpptr); (void *) tmpptr);

View file

@ -2313,7 +2313,7 @@ conf_report_error(const char *fmt, ...)
} }
ierror("\"%s\", line %d: %s", current_file, lineno + 1, msg); ierror("\"%s\", line %d: %s", current_file, lineno + 1, msg);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "error: \"%s\", line %d: %s", current_file, lineno + 1, msg); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "error: \"%s\", line %d: %s", current_file, lineno + 1, msg);
} }
void void
@ -2333,7 +2333,7 @@ conf_report_warning(const char *fmt, ...)
} }
iwarn("\"%s\", line %d: %s", current_file, lineno + 1, msg); iwarn("\"%s\", line %d: %s", current_file, lineno + 1, msg);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "warning: \"%s\", line %d: %s", current_file, lineno + 1, msg); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "warning: \"%s\", line %d: %s", current_file, lineno + 1, msg);
} }
int int

View file

@ -223,7 +223,7 @@ handle_command(struct Message *mptr, struct MsgBuf *msgbuf_p, struct Client *cli
return (-1); return (-1);
} }
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Dropping server %s due to (invalid) command '%s'" "Dropping server %s due to (invalid) command '%s'"
" with only %zu arguments (expecting %zu).", " with only %zu arguments (expecting %zu).",
client_p->name, mptr->cmd, msgbuf_p->n_para, ehandler.min_para); client_p->name, mptr->cmd, msgbuf_p->n_para, ehandler.min_para);
@ -380,7 +380,7 @@ remove_unknown(struct Client *client_p, const char *lsender, char *lbuffer)
if((IsDigit(lsender[0]) && slen == 3) || if((IsDigit(lsender[0]) && slen == 3) ||
(strchr(lsender, '.') != NULL)) (strchr(lsender, '.') != NULL))
{ {
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Unknown prefix (%s) from %s, Squitting %s", "Unknown prefix (%s) from %s, Squitting %s",
lbuffer, client_p->name, lsender); lbuffer, client_p->name, lsender);
@ -392,7 +392,7 @@ remove_unknown(struct Client *client_p, const char *lsender, char *lbuffer)
else if(!IsDigit(lsender[0])) else if(!IsDigit(lsender[0]))
; ;
else if(slen != 9) else if(slen != 9)
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Invalid prefix (%s) from %s", "Invalid prefix (%s) from %s",
lbuffer, client_p->name); lbuffer, client_p->name);
else else
@ -481,7 +481,7 @@ do_numeric(int numeric, struct Client *client_p, struct Client *source_p, int pa
*/ */
if(numeric != ERR_NOSUCHNICK && if(numeric != ERR_NOSUCHNICK &&
numeric != ERR_NOSUCHSERVER) numeric != ERR_NOSUCHSERVER)
sendto_realops_snomask(SNO_GENERAL, L_ADMIN, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"*** %s(via %s) sent a %03d numeric to me: %s", "*** %s(via %s) sent a %03d numeric to me: %s",
source_p->name, source_p->name,
client_p->name, numeric, buffer); client_p->name, numeric, buffer);

View file

@ -54,7 +54,7 @@ server_reboot(void)
int i; int i;
char path[PATH_MAX+1]; char path[PATH_MAX+1];
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Restarting server..."); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Restarting server...");
ilog(L_MAIN, "Restarting server..."); ilog(L_MAIN, "Restarting server...");

View file

@ -267,7 +267,7 @@ check_client(struct Client *client_p, struct Client *source_p, const char *usern
static char ipaddr[HOSTIPLEN]; static char ipaddr[HOSTIPLEN];
rb_inet_ntop_sock(&source_p->localClient->ip, ipaddr, sizeof(ipaddr)); rb_inet_ntop_sock(&source_p->localClient->ip, ipaddr, sizeof(ipaddr));
#endif #endif
sendto_realops_snomask(SNO_UNAUTH, L_ALL, sendto_realops_snomask(SNO_UNAUTH, L_NETWIDE,
"Unauthorised client connection from " "Unauthorised client connection from "
"%s!%s%s@%s [%s] on [%s/%u].", "%s!%s%s@%s [%s] on [%s/%u].",
source_p->name, IsGotId(source_p) ? "" : "~", source_p->name, IsGotId(source_p) ? "" : "~",
@ -332,7 +332,7 @@ verify_access(struct Client *client_p, const char *username)
if(IsConfSpoofNotice(aconf)) if(IsConfSpoofNotice(aconf))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s spoofing: %s as %s", "%s spoofing: %s as %s",
client_p->name, client_p->name,
show_ip(NULL, client_p) ? client_p->host : aconf->info.name, show_ip(NULL, client_p) ? client_p->host : aconf->info.name,
@ -649,7 +649,7 @@ rehash(bool sig)
hook_data_rehash hdata = { sig }; hook_data_rehash hdata = { sig };
if(sig) if(sig)
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Got signal SIGHUP, reloading ircd conf. file"); "Got signal SIGHUP, reloading ircd conf. file");
rehash_authd(); rehash_authd();
@ -1436,7 +1436,7 @@ read_conf_files(bool cold)
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Can't open file '%s' - aborting rehash!", filename); "Can't open file '%s' - aborting rehash!", filename);
return; return;
} }
@ -1688,7 +1688,7 @@ yyerror(const char *msg)
strip_tabs(newlinebuf, yy_linebuf, sizeof(newlinebuf)); strip_tabs(newlinebuf, yy_linebuf, sizeof(newlinebuf));
ierror("\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf); ierror("\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "\"%s\", line %d: %s at '%s'", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "\"%s\", line %d: %s at '%s'",
conffilebuf, lineno + 1, msg, newlinebuf); conffilebuf, lineno + 1, msg, newlinebuf);
} }

View file

@ -510,7 +510,7 @@ set_server_conf_autoconn(struct Client *source_p, const char *name, int newval)
else else
server_p->flags &= ~SERVER_AUTOCONN; server_p->flags &= ~SERVER_AUTOCONN;
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed AUTOCONN for %s to %i", "%s has changed AUTOCONN for %s to %i",
get_oper_name(source_p), name, newval); get_oper_name(source_p), name, newval);
} }
@ -528,7 +528,7 @@ disable_server_conf_autoconn(const char *name)
{ {
server_p->flags &= ~SERVER_AUTOCONN; server_p->flags &= ~SERVER_AUTOCONN;
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Disabling AUTOCONN for %s because of error", "Disabling AUTOCONN for %s because of error",
name); name);
ilog(L_SERVER, "Disabling AUTOCONN for %s because of error", ilog(L_SERVER, "Disabling AUTOCONN for %s because of error",

View file

@ -330,7 +330,7 @@ try_connections(void *unused)
* error afterwards if it fails. * error afterwards if it fails.
* -- adrian * -- adrian
*/ */
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection to %s activated", "Connection to %s activated",
server_p->name); server_p->name);
@ -814,7 +814,7 @@ server_estab(struct Client *client_p)
if((server_p = client_p->localClient->att_sconf) == NULL) if((server_p = client_p->localClient->att_sconf) == NULL)
{ {
/* This shouldn't happen, better tell the ops... -A1kmm */ /* This shouldn't happen, better tell the ops... -A1kmm */
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Warning: Lost connect{} block for server %s!", host); "Warning: Lost connect{} block for server %s!", host);
return exit_client(client_p, client_p, client_p, "Lost connect{} block!"); return exit_client(client_p, client_p, client_p, "Lost connect{} block!");
} }
@ -1106,7 +1106,7 @@ serv_connect(struct server_conf *server_p, struct Client *by)
*/ */
if((client_p = find_server(NULL, server_p->name))) if((client_p = find_server(NULL, server_p->name)))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Server %s already present from %s", "Server %s already present from %s",
server_p->name, client_p->name); server_p->name, client_p->name);
if(by && IsPerson(by) && !MyClient(by)) if(by && IsPerson(by) && !MyClient(by))
@ -1116,7 +1116,7 @@ serv_connect(struct server_conf *server_p, struct Client *by)
} }
if (CurrUsers(server_p->class) >= MaxUsers(server_p->class)) { if (CurrUsers(server_p->class) >= MaxUsers(server_p->class)) {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"No more connections allowed in class \"%s\" for server %s", "No more connections allowed in class \"%s\" for server %s",
server_p->class->class_name, server_p->name); server_p->class->class_name, server_p->name);
if(by && IsPerson(by) && !MyClient(by)) if(by && IsPerson(by) && !MyClient(by))
@ -1302,7 +1302,7 @@ serv_connect_callback(rb_fde_t *F, int status, void *data)
*/ */
if(status == RB_ERR_TIMEOUT || status == RB_ERROR_SSL) if(status == RB_ERR_TIMEOUT || status == RB_ERROR_SSL)
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Error connecting to %s[%s]: %s", "Error connecting to %s[%s]: %s",
client_p->name, client_p->name,
"255.255.255.255", "255.255.255.255",
@ -1314,7 +1314,7 @@ serv_connect_callback(rb_fde_t *F, int status, void *data)
else else
{ {
errstr = strerror(rb_get_sockerr(F)); errstr = strerror(rb_get_sockerr(F));
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Error connecting to %s[%s]: %s (%s)", "Error connecting to %s[%s]: %s (%s)",
client_p->name, client_p->name,
"255.255.255.255", "255.255.255.255",
@ -1332,7 +1332,7 @@ serv_connect_callback(rb_fde_t *F, int status, void *data)
/* Get the C/N lines */ /* Get the C/N lines */
if((server_p = client_p->localClient->att_sconf) == NULL) if((server_p = client_p->localClient->att_sconf) == NULL)
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, "Lost connect{} block for %s", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Lost connect{} block for %s",
client_p->name); client_p->name);
exit_client(client_p, client_p, &me, "Lost connect{} block"); exit_client(client_p, client_p, &me, "Lost connect{} block");
return; return;
@ -1340,7 +1340,7 @@ serv_connect_callback(rb_fde_t *F, int status, void *data)
if(server_p->certfp && (!client_p->certfp || rb_strcasecmp(server_p->certfp, client_p->certfp) != 0)) if(server_p->certfp && (!client_p->certfp || rb_strcasecmp(server_p->certfp, client_p->certfp) != 0))
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection to %s has invalid certificate fingerprint %s", "Connection to %s has invalid certificate fingerprint %s",
client_p->name, client_p->certfp); client_p->name, client_p->certfp);
ilog(L_SERVER, "Access denied, invalid certificate fingerprint %s from %s", ilog(L_SERVER, "Access denied, invalid certificate fingerprint %s from %s",
@ -1372,7 +1372,7 @@ serv_connect_callback(rb_fde_t *F, int status, void *data)
*/ */
if(IsAnyDead(client_p)) if(IsAnyDead(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s went dead during handshake", client_p->name); "%s went dead during handshake", client_p->name);
exit_client(client_p, client_p, &me, "Went dead during handshake"); exit_client(client_p, client_p, &me, "Went dead during handshake");
return; return;

View file

@ -254,7 +254,7 @@ authd_check(struct Client *client_p, struct Client *source_p)
{ {
/* This shouldn't happen, better tell the ops... */ /* This shouldn't happen, better tell the ops... */
ierror("authd sent us a malformed OPM string %s", proxy); ierror("authd sent us a malformed OPM string %s", proxy);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"authd sent us a malformed OPM string %s", proxy); "authd sent us a malformed OPM string %s", proxy);
break; break;
} }
@ -542,7 +542,7 @@ register_local_user(struct Client *client_p, struct Client *source_p)
if(rb_dlink_list_length(&lclient_list) >= if(rb_dlink_list_length(&lclient_list) >=
(unsigned long)GlobalSetOptions.maxclients && !IsConfExemptLimits(aconf)) (unsigned long)GlobalSetOptions.maxclients && !IsConfExemptLimits(aconf))
{ {
sendto_realops_snomask(SNO_FULL, L_ALL, sendto_realops_snomask(SNO_FULL, L_NETWIDE,
"Too many clients, rejecting %s[%s].", source_p->name, source_p->host); "Too many clients, rejecting %s[%s].", source_p->name, source_p->host);
ServerStats.is_ref++; ServerStats.is_ref++;
@ -568,7 +568,7 @@ register_local_user(struct Client *client_p, struct Client *source_p)
if(!valid_username(source_p->username)) if(!valid_username(source_p->username))
{ {
sendto_realops_snomask(SNO_REJ, L_ALL, sendto_realops_snomask(SNO_REJ, L_NETWIDE,
"Invalid username: %s (%s@%s)", "Invalid username: %s (%s@%s)",
source_p->name, source_p->username, source_p->host); source_p->name, source_p->username, source_p->host);
ServerStats.is_ref++; ServerStats.is_ref++;
@ -659,7 +659,7 @@ register_local_user(struct Client *client_p, struct Client *source_p)
{ {
Count.max_loc = rb_dlink_list_length(&lclient_list); Count.max_loc = rb_dlink_list_length(&lclient_list);
if(!(Count.max_loc % 10)) if(!(Count.max_loc % 10))
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"New Max Local Clients: %d", Count.max_loc); "New Max Local Clients: %d", Count.max_loc);
} }
@ -1040,7 +1040,7 @@ user_mode(struct Client *client_p, struct Client *source_p, int parc, const char
if(IsServer(source_p)) if(IsServer(source_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ADMIN, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"*** Mode for User %s from %s", parv[1], source_p->name); "*** Mode for User %s from %s", parv[1], source_p->name);
return 0; return 0;
} }
@ -1513,12 +1513,12 @@ construct_umodebuf(void)
if (user_modes[i] == 0) if (user_modes[i] == 0)
{ {
orphaned_umodes |= prev_user_modes[i]; orphaned_umodes |= prev_user_modes[i];
sendto_realops_snomask(SNO_DEBUG, L_ALL, "Umode +%c is now orphaned", i); sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "Umode +%c is now orphaned", i);
} }
else else
{ {
orphaned_umodes &= ~prev_user_modes[i]; orphaned_umodes &= ~prev_user_modes[i];
sendto_realops_snomask(SNO_DEBUG, L_ALL, "Orphaned umode +%c is picked up by module", i); sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "Orphaned umode +%c is picked up by module", i);
} }
user_modes[i] = prev_user_modes[i]; user_modes[i] = prev_user_modes[i];
} }

View file

@ -72,7 +72,7 @@ _send_linebuf(struct Client *to, buf_head_t *linebuf)
{ {
if(IsServer(to)) if(IsServer(to))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Max SendQ limit exceeded for %s: %u > %lu", "Max SendQ limit exceeded for %s: %u > %lu",
to->name, to->name,
rb_linebuf_len(&to->localClient->buf_sendq), rb_linebuf_len(&to->localClient->buf_sendq),

View file

@ -209,7 +209,7 @@ ssl_dead(ssl_ctl_t * ctl)
{ {
ssld_count--; ssld_count--;
ilog(L_MAIN, "ssld helper died - attempting to restart"); ilog(L_MAIN, "ssld helper died - attempting to restart");
sendto_realops_snomask(SNO_GENERAL, L_ALL, "ssld helper died - attempting to restart"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "ssld helper died - attempting to restart");
start_ssldaemon(1); start_ssldaemon(1);
} }
} }
@ -238,7 +238,7 @@ restart_ssld_event(void *unused)
{ {
int start = ServerInfo.ssld_count - get_ssld_count(); int start = ServerInfo.ssld_count - get_ssld_count();
ilog(L_MAIN, "Attempting to restart ssld processes"); ilog(L_MAIN, "Attempting to restart ssld processes");
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Attempt to restart ssld processes"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Attempt to restart ssld processes");
start_ssldaemon(start); start_ssldaemon(start);
} }
} }
@ -268,7 +268,7 @@ start_ssldaemon(int count)
if(ssld_spin_count > 20 && (rb_current_time() - last_spin < 5)) if(ssld_spin_count > 20 && (rb_current_time() - last_spin < 5))
{ {
ilog(L_MAIN, "ssld helper is spinning - will attempt to restart in 1 minute"); ilog(L_MAIN, "ssld helper is spinning - will attempt to restart in 1 minute");
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"ssld helper is spinning - will attempt to restart in 1 minute"); "ssld helper is spinning - will attempt to restart in 1 minute");
rb_event_add("restart_ssld_event", restart_ssld_event, NULL, 60); rb_event_add("restart_ssld_event", restart_ssld_event, NULL, 60);
ssld_wait = 1; ssld_wait = 1;
@ -427,7 +427,7 @@ ssl_process_dead_fd(ssl_ctl_t * ctl, ssl_ctl_buf_t * ctl_buf)
if(IsAnyServer(client_p)) if(IsAnyServer(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) && !IsServer(client_p) ? L_NETWIDE : L_ALL, "ssld error for %s: %s", client_p->name, reason); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "ssld error for %s: %s", client_p->name, reason);
ilog(L_SERVER, "ssld error for %s: %s", log_client_name(client_p, SHOW_IP), reason); ilog(L_SERVER, "ssld error for %s: %s", log_client_name(client_p, SHOW_IP), reason);
} }
@ -573,13 +573,13 @@ ssl_process_cmd_recv(ssl_ctl_t * ctl)
case 'I': case 'I':
ircd_ssl_ok = false; ircd_ssl_ok = false;
ilog(L_MAIN, "%s", cannot_setup_ssl); ilog(L_MAIN, "%s", cannot_setup_ssl);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s", cannot_setup_ssl); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s", cannot_setup_ssl);
break; break;
case 'U': case 'U':
ircd_zlib_ok = 0; ircd_zlib_ok = 0;
ircd_ssl_ok = false; ircd_ssl_ok = false;
ilog(L_MAIN, "%s", no_ssl_or_zlib); ilog(L_MAIN, "%s", no_ssl_or_zlib);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s", no_ssl_or_zlib); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s", no_ssl_or_zlib);
ssl_killall(); ssl_killall();
return; return;
case 'V': case 'V':
@ -592,7 +592,7 @@ ssl_process_cmd_recv(ssl_ctl_t * ctl)
break; break;
default: default:
ilog(L_MAIN, "Received invalid command from ssld: %s", ctl_buf->buf); ilog(L_MAIN, "Received invalid command from ssld: %s", ctl_buf->buf);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Received invalid command from ssld"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Received invalid command from ssld");
break; break;
} }
rb_dlinkDelete(ptr, &ctl->readq); rb_dlinkDelete(ptr, &ctl->readq);
@ -744,7 +744,7 @@ send_new_ssl_certs_one(ssl_ctl_t * ctl)
if(len > sizeof(tmpbuf)) if(len > sizeof(tmpbuf))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Parameters for send_new_ssl_certs_one too long (%zu > %zu) to pass to ssld, not sending...", "Parameters for send_new_ssl_certs_one too long (%zu > %zu) to pass to ssld, not sending...",
len, sizeof(tmpbuf)); len, sizeof(tmpbuf));
ilog(L_MAIN, ilog(L_MAIN,
@ -887,7 +887,7 @@ start_zlib_session(void *data)
if(len > READBUF_SIZE) if(len > READBUF_SIZE)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"ssld - attempted to pass message of %zd len, max len %d, giving up", "ssld - attempted to pass message of %zd len, max len %d, giving up",
len, READBUF_SIZE); len, READBUF_SIZE);
ilog(L_MAIN, "ssld - attempted to pass message of %zd len, max len %d, giving up", len, READBUF_SIZE); ilog(L_MAIN, "ssld - attempted to pass message of %zd len, max len %d, giving up", len, READBUF_SIZE);
@ -919,7 +919,7 @@ start_zlib_session(void *data)
*buf = 'Z'; *buf = 'Z';
if(rb_socketpair(AF_UNIX, SOCK_STREAM, 0, &xF1, &xF2, "Initial zlib socketpairs") == -1) if(rb_socketpair(AF_UNIX, SOCK_STREAM, 0, &xF1, &xF2, "Initial zlib socketpairs") == -1)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Error creating zlib socketpair - %s", strerror(errno)); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Error creating zlib socketpair - %s", strerror(errno));
ilog(L_MAIN, "Error creating zlib socketpairs - %s", strerror(errno)); ilog(L_MAIN, "Error creating zlib socketpairs - %s", strerror(errno));
exit_client(server, server, server, "Error creating zlib socketpair"); exit_client(server, server, server, "Error creating zlib socketpair");
rb_free(buf); rb_free(buf);

View file

@ -194,7 +194,7 @@ ws_dead(ws_ctl_t * ctl)
{ {
wsockd_count--; wsockd_count--;
ilog(L_MAIN, "wsockd helper died - attempting to restart"); ilog(L_MAIN, "wsockd helper died - attempting to restart");
sendto_realops_snomask(SNO_GENERAL, L_ALL, "wsockd helper died - attempting to restart"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "wsockd helper died - attempting to restart");
start_wsockd(1); start_wsockd(1);
} }
} }
@ -223,7 +223,7 @@ restart_wsockd_event(void *unused)
{ {
int start = ServerInfo.wsockd_count - get_wsockd_count(); int start = ServerInfo.wsockd_count - get_wsockd_count();
ilog(L_MAIN, "Attempting to restart wsockd processes"); ilog(L_MAIN, "Attempting to restart wsockd processes");
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Attempting to restart wsockd processes"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Attempting to restart wsockd processes");
start_wsockd(start); start_wsockd(start);
} }
} }
@ -253,7 +253,7 @@ start_wsockd(int count)
if(wsockd_spin_count > 20 && (rb_current_time() - last_spin < 5)) if(wsockd_spin_count > 20 && (rb_current_time() - last_spin < 5))
{ {
ilog(L_MAIN, "wsockd helper is spinning - will attempt to restart in 1 minute"); ilog(L_MAIN, "wsockd helper is spinning - will attempt to restart in 1 minute");
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"wsockd helper is spinning - will attempt to restart in 1 minute"); "wsockd helper is spinning - will attempt to restart in 1 minute");
rb_event_add("restart_wsockd_event", restart_wsockd_event, NULL, 60); rb_event_add("restart_wsockd_event", restart_wsockd_event, NULL, 60);
wsockd_wait = 1; wsockd_wait = 1;
@ -380,7 +380,7 @@ ws_process_cmd_recv(ws_ctl_t * ctl)
break; break;
default: default:
ilog(L_MAIN, "Received invalid command from wsockd: %s", ctl_buf->buf); ilog(L_MAIN, "Received invalid command from wsockd: %s", ctl_buf->buf);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Received invalid command from wsockd"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Received invalid command from wsockd");
break; break;
} }
rb_dlinkDelete(ptr, &ctl->readq); rb_dlinkDelete(ptr, &ctl->readq);

View file

@ -106,11 +106,11 @@ m_error(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
if(IsAnyServer(client_p)) if(IsAnyServer(client_p))
{ {
if (hideit < 2) if (hideit < 2)
sendto_realops_snomask(SNO_GENERAL, hideit ? L_ADMIN : (is_remote_connect(client_p) ? L_NETWIDE : L_ALL), sendto_realops_snomask(SNO_GENERAL, hideit ? L_ADMIN : L_NETWIDE,
"ERROR :from %s -- %s", "ERROR :from %s -- %s",
client_p->name, para); client_p->name, para);
if (hideit > 0) if (hideit > 0)
sendto_realops_snomask(SNO_GENERAL, (hideit == 1 ? L_OPER : L_ALL) | (is_remote_connect(client_p) ? L_NETWIDE : L_ALL), sendto_realops_snomask(SNO_GENERAL, hideit == 1 ? L_OPER | L_NETWIDE : L_NETWIDE,
"ERROR :from %s -- <hidden>", "ERROR :from %s -- <hidden>",
client_p->name); client_p->name);
} }
@ -136,12 +136,12 @@ ms_error(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
if(client_p == source_p) if(client_p == source_p)
{ {
sendto_realops_snomask(SNO_GENERAL, hideit ? L_ADMIN : L_ALL, "ERROR :from %s -- %s", sendto_realops_snomask(SNO_GENERAL, hideit ? L_ADMIN : L_NETWIDE, "ERROR :from %s -- %s",
client_p->name, para); client_p->name, para);
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, hideit ? L_ADMIN : L_ALL, "ERROR :from %s via %s -- %s", sendto_realops_snomask(SNO_GENERAL, hideit ? L_ADMIN : L_NETWIDE, "ERROR :from %s via %s -- %s",
source_p->name, client_p->name, para); source_p->name, client_p->name, para);
} }
} }

View file

@ -803,7 +803,7 @@ msg_client(enum message_type msgtype,
} }
else if(source_p->from == target_p->from) else if(source_p->from == target_p->from)
{ {
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Send message to %s[%s] dropped from %s(Fake Dir)", "Send message to %s[%s] dropped from %s(Fake Dir)",
target_p->name, target_p->from->name, source_p->name); target_p->name, target_p->from->name, source_p->name);
return; return;

View file

@ -325,7 +325,7 @@ ms_uid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
if(parc != 10) if(parc != 10)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Dropping server %s due to (invalid) command 'UID' " "Dropping server %s due to (invalid) command 'UID' "
"with %d arguments (expecting 10)", client_p->name, parc); "with %d arguments (expecting 10)", client_p->name, parc);
ilog(L_SERVER, "Excess parameters (%d) for command 'UID' from %s.", ilog(L_SERVER, "Excess parameters (%d) for command 'UID' from %s.",
@ -356,7 +356,7 @@ ms_uid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
if(!clean_username(parv[5]) || !clean_host(parv[6])) if(!clean_username(parv[5]) || !clean_host(parv[6]))
{ {
ServerStats.is_kill++; ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Bad user@host: %s@%s From: %s(via %s)", "Bad user@host: %s@%s From: %s(via %s)",
parv[5], parv[6], source_p->name, client_p->name); parv[5], parv[6], source_p->name, client_p->name);
sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name); sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
@ -367,7 +367,7 @@ ms_uid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
if(strlen(parv[9]) > REALLEN) if(strlen(parv[9]) > REALLEN)
{ {
char *s = LOCAL_COPY(parv[9]); char *s = LOCAL_COPY(parv[9]);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Long realname from server %s for %s", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Long realname from server %s for %s",
source_p->name, parv[1]); source_p->name, parv[1]);
s[REALLEN] = '\0'; s[REALLEN] = '\0';
parv[9] = s; parv[9] = s;
@ -414,7 +414,7 @@ ms_euid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
if(parc != 12) if(parc != 12)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Dropping server %s due to (invalid) command 'EUID' " "Dropping server %s due to (invalid) command 'EUID' "
"with %d arguments (expecting 12)", client_p->name, parc); "with %d arguments (expecting 12)", client_p->name, parc);
ilog(L_SERVER, "Excess parameters (%d) for command 'EUID' from %s.", ilog(L_SERVER, "Excess parameters (%d) for command 'EUID' from %s.",
@ -445,7 +445,7 @@ ms_euid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
if(!clean_username(parv[5]) || !clean_host(parv[6])) if(!clean_username(parv[5]) || !clean_host(parv[6]))
{ {
ServerStats.is_kill++; ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Bad user@host: %s@%s From: %s(via %s)", "Bad user@host: %s@%s From: %s(via %s)",
parv[5], parv[6], source_p->name, client_p->name); parv[5], parv[6], source_p->name, client_p->name);
sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name); sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
@ -455,7 +455,7 @@ ms_euid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
if(strcmp(parv[9], "*") && !clean_host(parv[9])) if(strcmp(parv[9], "*") && !clean_host(parv[9]))
{ {
ServerStats.is_kill++; ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Bad realhost: %s From: %s(via %s)", "Bad realhost: %s From: %s(via %s)",
parv[9], source_p->name, client_p->name); parv[9], source_p->name, client_p->name);
sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name); sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
@ -466,7 +466,7 @@ ms_euid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
if(strlen(parv[11]) > REALLEN) if(strlen(parv[11]) > REALLEN)
{ {
char *s = LOCAL_COPY(parv[11]); char *s = LOCAL_COPY(parv[11]);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Long realname from server %s for %s", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Long realname from server %s for %s",
source_p->name, parv[1]); source_p->name, parv[1]);
s[REALLEN] = '\0'; s[REALLEN] = '\0';
parv[11] = s; parv[11] = s;
@ -790,7 +790,7 @@ perform_nick_collides(struct Client *source_p, struct Client *client_p,
/* if we dont have a ts, or their TS's are the same, kill both */ /* if we dont have a ts, or their TS's are the same, kill both */
if(!newts || !target_p->tsinfo || (newts == target_p->tsinfo)) if(!newts || !target_p->tsinfo || (newts == target_p->tsinfo))
{ {
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick collision on %s(%s <- %s)(both %s)", "Nick collision on %s(%s <- %s)(both %s)",
target_p->name, target_p->from->name, client_p->name, action); target_p->name, target_p->from->name, client_p->name, action);
@ -853,12 +853,12 @@ perform_nick_collides(struct Client *source_p, struct Client *client_p,
else else
{ {
if(sameuser) if(sameuser)
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick collision on %s(%s <- %s)(older %s)", "Nick collision on %s(%s <- %s)(older %s)",
target_p->name, target_p->from->name, target_p->name, target_p->from->name,
client_p->name, action); client_p->name, action);
else else
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick collision on %s(%s <- %s)(newer %s)", "Nick collision on %s(%s <- %s)(newer %s)",
target_p->name, target_p->from->name, target_p->name, target_p->from->name,
client_p->name, action); client_p->name, action);
@ -905,7 +905,7 @@ perform_nickchange_collides(struct Client *source_p, struct Client *client_p,
/* its a client changing nick and causing a collide */ /* its a client changing nick and causing a collide */
if(!newts || !target_p->tsinfo || (newts == target_p->tsinfo) || !source_p->user) if(!newts || !target_p->tsinfo || (newts == target_p->tsinfo) || !source_p->user)
{ {
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick change collision from %s to %s(%s <- %s)(both %s)", "Nick change collision from %s to %s(%s <- %s)(both %s)",
source_p->name, target_p->name, target_p->from->name, source_p->name, target_p->name, target_p->from->name,
client_p->name, action); client_p->name, action);
@ -948,12 +948,12 @@ perform_nickchange_collides(struct Client *source_p, struct Client *client_p,
(!sameuser && newts > target_p->tsinfo)) (!sameuser && newts > target_p->tsinfo))
{ {
if(sameuser) if(sameuser)
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick change collision from %s to %s(%s <- %s)(older %s)", "Nick change collision from %s to %s(%s <- %s)(older %s)",
source_p->name, target_p->name, source_p->name, target_p->name,
target_p->from->name, client_p->name, action); target_p->from->name, client_p->name, action);
else else
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick change collision from %s to %s(%s <- %s)(newer %s)", "Nick change collision from %s to %s(%s <- %s)(newer %s)",
source_p->name, target_p->name, source_p->name, target_p->name,
target_p->from->name, client_p->name, action); target_p->from->name, client_p->name, action);
@ -993,12 +993,12 @@ perform_nickchange_collides(struct Client *source_p, struct Client *client_p,
else else
{ {
if(sameuser) if(sameuser)
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick collision on %s(%s <- %s)(older %s)", "Nick collision on %s(%s <- %s)(older %s)",
target_p->name, target_p->from->name, target_p->name, target_p->from->name,
client_p->name, action); client_p->name, action);
else else
sendto_realops_snomask(SNO_SKILL, L_ALL, sendto_realops_snomask(SNO_SKILL, L_NETWIDE,
"Nick collision on %s(%s <- %s)(newer %s)", "Nick collision on %s(%s <- %s)(newer %s)",
target_p->name, target_p->from->name, target_p->name, target_p->from->name,
client_p->name, action); client_p->name, action);
@ -1168,7 +1168,7 @@ save_user(struct Client *client_p, struct Client *source_p,
{ {
/* This shouldn't happen */ /* This shouldn't happen */
/* Note we only need SAVE support in this direction */ /* Note we only need SAVE support in this direction */
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Killed %s!%s@%s for nick collision detected by %s (%s does not support SAVE)", "Killed %s!%s@%s for nick collision detected by %s (%s does not support SAVE)",
target_p->name, target_p->username, target_p->host, source_p->name, target_p->from->name); target_p->name, target_p->username, target_p->host, source_p->name, target_p->from->name);
kill_client_serv_butone(NULL, target_p, "%s (Nick collision (no SAVE support))", me.name); kill_client_serv_butone(NULL, target_p, "%s (Nick collision (no SAVE support))", me.name);

View file

@ -85,7 +85,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if (IsHandshake(client_p) && irccmp(client_p->name, name)) if (IsHandshake(client_p) && irccmp(client_p->name, name))
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Server %s has unexpected name %s", "Server %s has unexpected name %s",
client_p->name, name); client_p->name, name);
ilog(L_SERVER, "Server %s has unexpected name %s", ilog(L_SERVER, "Server %s has unexpected name %s",
@ -99,7 +99,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
*/ */
if(!DoesTS(client_p)) if(!DoesTS(client_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Link %s dropped, non-TS server", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Link %s dropped, non-TS server",
client_p->name); client_p->name);
exit_client(client_p, client_p, client_p, "Non-TS server"); exit_client(client_p, client_p, client_p, "Non-TS server");
return; return;
@ -122,7 +122,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
case -1: case -1:
if(ConfigFileEntry.warn_no_nline) if(ConfigFileEntry.warn_no_nline)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unauthorised server connection attempt from %s: " "Unauthorised server connection attempt from %s: "
"No entry for servername %s", "No entry for servername %s",
"[@255.255.255.255]", name); "[@255.255.255.255]", name);
@ -138,7 +138,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
break; break;
case -2: case -2:
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unauthorised server connection attempt from %s: " "Unauthorised server connection attempt from %s: "
"Bad credentials for server %s", "Bad credentials for server %s",
"[@255.255.255.255]", name); "[@255.255.255.255]", name);
@ -153,7 +153,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
break; break;
case -3: case -3:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Unauthorised server connection attempt from %s: " "Unauthorised server connection attempt from %s: "
"Invalid host for server %s", "Invalid host for server %s",
"[@255.255.255.255]", name); "[@255.255.255.255]", name);
@ -169,7 +169,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
/* servername is > HOSTLEN */ /* servername is > HOSTLEN */
case -4: case -4:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Invalid servername %s from %s", "Invalid servername %s from %s",
name, "[@255.255.255.255]"); name, "[@255.255.255.255]");
ilog(L_SERVER, "Access denied, invalid servername from %s", ilog(L_SERVER, "Access denied, invalid servername from %s",
@ -180,7 +180,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
/* NOT REACHED */ /* NOT REACHED */
break; break;
case -5: case -5:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection from servername %s requires SSL/TLS but is plaintext", "Connection from servername %s requires SSL/TLS but is plaintext",
name); name);
ilog(L_SERVER, "Access denied, requires SSL/TLS but is plaintext from %s", ilog(L_SERVER, "Access denied, requires SSL/TLS but is plaintext from %s",
@ -191,7 +191,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
case -6: case -6:
if (client_p->certfp) if (client_p->certfp)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection from servername %s has invalid certificate fingerprint %s", "Connection from servername %s has invalid certificate fingerprint %s",
name, client_p->certfp); name, client_p->certfp);
ilog(L_SERVER, "Access denied, invalid certificate fingerprint %s from %s", ilog(L_SERVER, "Access denied, invalid certificate fingerprint %s from %s",
@ -200,7 +200,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection from servername %s failed certificate validation", "Connection from servername %s failed certificate validation",
name); name);
ilog(L_SERVER, "Access denied; certificate validation failed for certificate from %s", ilog(L_SERVER, "Access denied; certificate validation failed for certificate from %s",
@ -210,7 +210,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
return; return;
case -7: case -7:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection from servername %s rejected, no more connections allowed in class", "Connection from servername %s rejected, no more connections allowed in class",
name); name);
ilog(L_SERVER, "Access denied, no more connections allowed in class for %s", ilog(L_SERVER, "Access denied, no more connections allowed in class for %s",
@ -219,7 +219,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
exit_client(client_p, client_p, client_p, "Access denied, no more connections allowed in class"); exit_client(client_p, client_p, client_p, "Access denied, no more connections allowed in class");
return; return;
default: default:
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Connection from servername %s rejected, unknown error %d", "Connection from servername %s rejected, unknown error %d",
name, ret); name, ret);
ilog(L_SERVER, "Access denied, unknown error %d for server %s%s", ret, ilog(L_SERVER, "Access denied, unknown error %d for server %s%s", ret,
@ -233,7 +233,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
/* require TS6 for direct links */ /* require TS6 for direct links */
if(!IsCapable(client_p, CAP_TS6)) if(!IsCapable(client_p, CAP_TS6))
{ {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s dropped, TS6 protocol is required", name); "Link %s dropped, TS6 protocol is required", name);
exit_client(client_p, client_p, client_p, "Incompatible TS version"); exit_client(client_p, client_p, client_p, "Incompatible TS version");
return; return;
@ -245,7 +245,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
{ {
missing = capability_index_list(serv_capindex, required_mask & missing = capability_index_list(serv_capindex, required_mask &
~client_p->localClient->caps); ~client_p->localClient->caps);
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s dropped, required CAPABs [%s] are missing", "Link %s dropped, required CAPABs [%s] are missing",
name, missing); name, missing);
ilog(L_SERVER, "Link %s%s dropped, required CAPABs [%s] are missing", ilog(L_SERVER, "Link %s%s dropped, required CAPABs [%s] are missing",
@ -284,7 +284,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Attempt to re-introduce server %s from %s", "Attempt to re-introduce server %s from %s",
name, "[@255.255.255.255]"); name, "[@255.255.255.255]");
ilog(L_SERVER, "Attempt to re-introduce server %s from %s", ilog(L_SERVER, "Attempt to re-introduce server %s from %s",
@ -298,7 +298,7 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if (client_p->preClient && !EmptyString(client_p->preClient->id)) { if (client_p->preClient && !EmptyString(client_p->preClient->id)) {
if ((target_p = find_id(client_p->preClient->id)) != NULL) { if ((target_p = find_id(client_p->preClient->id)) != NULL) {
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Attempt to re-introduce SID %s from %s%s (already in use by %s)", "Attempt to re-introduce SID %s from %s%s (already in use by %s)",
client_p->preClient->id, client_p->preClient->id,
EmptyString(client_p->name) ? name : "", EmptyString(client_p->name) ? name : "",
@ -395,7 +395,7 @@ ms_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
* for a while and servers to send stuff to the wrong place. * for a while and servers to send stuff to the wrong place.
*/ */
sendto_one(client_p, "ERROR :Nickname %s already exists!", name); sendto_one(client_p, "ERROR :Nickname %s already exists!", name);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s cancelled: Server/nick collision on %s", "Link %s cancelled: Server/nick collision on %s",
client_p->name, name); client_p->name, name);
ilog(L_SERVER, "Link %s cancelled: Server/nick collision on %s", ilog(L_SERVER, "Link %s cancelled: Server/nick collision on %s",
@ -457,7 +457,7 @@ ms_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(!hlined) if(!hlined)
{ {
/* OOOPs nope can't HUB */ /* OOOPs nope can't HUB */
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Non-Hub link %s introduced %s.", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Non-Hub link %s introduced %s.",
client_p->name, name); client_p->name, name);
ilog(L_SERVER, "Non-Hub link %s introduced %s.", ilog(L_SERVER, "Non-Hub link %s introduced %s.",
client_p->name, name); client_p->name, name);
@ -473,7 +473,7 @@ ms_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(llined) if(llined)
{ {
/* OOOPs nope can't HUB this leaf */ /* OOOPs nope can't HUB this leaf */
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s introduced leafed server %s.", "Link %s introduced leafed server %s.",
client_p->name, name); client_p->name, name);
ilog(L_SERVER, "Link %s introduced leafed server %s.", ilog(L_SERVER, "Link %s introduced leafed server %s.",
@ -490,7 +490,7 @@ ms_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(strlen(name) > HOSTLEN) if(strlen(name) > HOSTLEN)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s introduced server with invalid servername %s", "Link %s introduced server with invalid servername %s",
client_p->name, name); client_p->name, name);
ilog(L_SERVER, "Link %s introduced server with invalid servername %s", ilog(L_SERVER, "Link %s introduced server with invalid servername %s",
@ -581,7 +581,7 @@ ms_sid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
if(bogus_host(parv[1]) || strlen(parv[1]) > HOSTLEN) if(bogus_host(parv[1]) || strlen(parv[1]) > HOSTLEN)
{ {
sendto_one(client_p, "ERROR :Invalid servername"); sendto_one(client_p, "ERROR :Invalid servername");
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s cancelled, servername %s invalid", "Link %s cancelled, servername %s invalid",
client_p->name, parv[1]); client_p->name, parv[1]);
ilog(L_SERVER, "Link %s cancelled, servername %s invalid", ilog(L_SERVER, "Link %s cancelled, servername %s invalid",
@ -595,7 +595,7 @@ ms_sid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
!IsIdChar(parv[3][2]) || parv[3][3] != '\0') !IsIdChar(parv[3][2]) || parv[3][3] != '\0')
{ {
sendto_one(client_p, "ERROR :Invalid SID"); sendto_one(client_p, "ERROR :Invalid SID");
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s cancelled, SID %s invalid", "Link %s cancelled, SID %s invalid",
client_p->name, parv[3]); client_p->name, parv[3]);
ilog(L_SERVER, "Link %s cancelled, SID %s invalid", ilog(L_SERVER, "Link %s cancelled, SID %s invalid",
@ -625,7 +625,7 @@ ms_sid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
/* no matching hub_mask */ /* no matching hub_mask */
if(!hlined) if(!hlined)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Non-Hub link %s introduced %s.", "Non-Hub link %s introduced %s.",
client_p->name, parv[1]); client_p->name, parv[1]);
ilog(L_SERVER, "Non-Hub link %s introduced %s.", ilog(L_SERVER, "Non-Hub link %s introduced %s.",
@ -641,7 +641,7 @@ ms_sid(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
/* matching leaf_mask */ /* matching leaf_mask */
if(llined) if(llined)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s introduced leafed server %s.", "Link %s introduced leafed server %s.",
client_p->name, parv[1]); client_p->name, parv[1]);
ilog(L_SERVER, "Link %s introduced leafed server %s.", ilog(L_SERVER, "Link %s introduced leafed server %s.",

View file

@ -76,7 +76,7 @@ mo_squit(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
{ {
if(MyConnect(found_squit->target_p)) if(MyConnect(found_squit->target_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Received SQUIT %s from %s (%s)", "Received SQUIT %s from %s (%s)",
found_squit->target_p->name, found_squit->target_p->name,
get_client_name(source_p, HIDE_IP), comment); get_client_name(source_p, HIDE_IP), comment);
@ -135,14 +135,9 @@ ms_squit(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
*/ */
else if(MyConnect(target_p)) else if(MyConnect(target_p))
{ {
sendto_wallops_flags(UMODE_WALLOP, &me, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Remote SQUIT %s from %s (%s)",
"Remote SQUIT %s from %s (%s)",
target_p->name, source_p->name, comment); target_p->name, source_p->name, comment);
sendto_server(NULL, NULL, CAP_TS6, NOCAPS,
":%s WALLOPS :Remote SQUIT %s from %s (%s)",
me.id, target_p->name, source_p->name, comment);
ilog(L_SERVER, "SQUIT From %s : %s (%s)", source_p->name, target_p->name, comment); ilog(L_SERVER, "SQUIT From %s : %s (%s)", source_p->name, target_p->name, comment);
} }
exit_client(client_p, target_p, source_p, comment); exit_client(client_p, target_p, source_p, comment);

View file

@ -60,7 +60,7 @@ static const char challenge_desc[] = "Does nothing as OpenSSL was not enabled.";
/* now it is -larne */ /* now it is -larne */
static int challenge_load(void) static int challenge_load(void)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Challenge module not loaded because OpenSSL is not available."); "Challenge module not loaded because OpenSSL is not available.");
ilog(L_MAIN, "Challenge module not loaded because OpenSSL is not available."); ilog(L_MAIN, "Challenge module not loaded because OpenSSL is not available.");
return -1; return -1;
@ -231,7 +231,7 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
if(ConfigFileEntry.failed_oper_notice) if(ConfigFileEntry.failed_oper_notice)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Failed CHALLENGE attempt - missing SSL/TLS by %s (%s@%s)", "Failed CHALLENGE attempt - missing SSL/TLS by %s (%s@%s)",
source_p->name, source_p->username, source_p->host); source_p->name, source_p->username, source_p->host);
} }
@ -249,7 +249,7 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
if(ConfigFileEntry.failed_oper_notice) if(ConfigFileEntry.failed_oper_notice)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Failed OPER attempt - client certificate fingerprint mismatch by %s (%s@%s)", "Failed OPER attempt - client certificate fingerprint mismatch by %s (%s@%s)",
source_p->name, source_p->username, source_p->host); source_p->name, source_p->username, source_p->host);
} }

View file

@ -113,7 +113,7 @@ do_chghost(struct Client *source_p, struct Client *target_p,
{ {
if (!clean_host(newhost)) if (!clean_host(newhost))
{ {
sendto_realops_snomask(SNO_GENERAL, is_encap ? L_ALL : L_NETWIDE, "%s attempted to change hostname for %s to %s (invalid)", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s attempted to change hostname for %s to %s (invalid)",
IsServer(source_p) ? source_p->name : get_oper_name(source_p), IsServer(source_p) ? source_p->name : get_oper_name(source_p),
target_p->name, newhost); target_p->name, newhost);
/* sending this remotely may disclose important /* sending this remotely may disclose important

View file

@ -303,7 +303,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
if(EmptyString(oper_reason)) if(EmptyString(oper_reason))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s added temporary %d min. D-Line for [%s] [%s]", "%s added temporary %d min. D-Line for [%s] [%s]",
get_oper_name(source_p), tdline_time / 60, get_oper_name(source_p), tdline_time / 60,
aconf->host, reason); aconf->host, reason);
@ -312,7 +312,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s added temporary %d min. D-Line for [%s] [%s|%s]", "%s added temporary %d min. D-Line for [%s] [%s|%s]",
get_oper_name(source_p), tdline_time / 60, get_oper_name(source_p), tdline_time / 60,
aconf->host, reason, oper_reason); aconf->host, reason, oper_reason);
@ -333,7 +333,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
if(EmptyString(oper_reason)) if(EmptyString(oper_reason))
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s added D-Line for [%s] [%s]", "%s added D-Line for [%s] [%s]",
get_oper_name(source_p), aconf->host, reason); get_oper_name(source_p), aconf->host, reason);
ilog(L_KLINE, "D %s 0 %s %s", ilog(L_KLINE, "D %s 0 %s %s",
@ -341,7 +341,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
} }
else else
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s added D-Line for [%s] [%s|%s]", "%s added D-Line for [%s] [%s|%s]",
get_oper_name(source_p), aconf->host, reason, oper_reason); get_oper_name(source_p), aconf->host, reason, oper_reason);
ilog(L_KLINE, "D %s 0 %s %s|%s", ilog(L_KLINE, "D %s 0 %s %s|%s",
@ -378,7 +378,7 @@ apply_undline(struct Client *source_p, const char *cidr)
sendto_one(source_p, sendto_one(source_p,
":%s NOTICE %s :Un-dlined [%s] from temporary D-lines", ":%s NOTICE %s :Un-dlined [%s] from temporary D-lines",
me.name, source_p->name, buf); me.name, source_p->name, buf);
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has removed the temporary D-Line for: [%s]", "%s has removed the temporary D-Line for: [%s]",
get_oper_name(source_p), buf); get_oper_name(source_p), buf);
ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), buf); ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), buf);
@ -389,7 +389,7 @@ apply_undline(struct Client *source_p, const char *cidr)
sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", me.name, source_p->name, sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", me.name, source_p->name,
aconf->host); aconf->host);
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s has removed the D-Line for: [%s]", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has removed the D-Line for: [%s]",
get_oper_name(source_p), aconf->host); get_oper_name(source_p), aconf->host);
ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), aconf->host); ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), aconf->host);
delete_one_address_conf(aconf->host, aconf); delete_one_address_conf(aconf->host, aconf);

View file

@ -163,6 +163,15 @@ mo_kline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
if(target_server != NULL) if(target_server != NULL)
{ {
if (tkline_time)
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s is adding a temporary %d min. K-Line for [%s@%s] on %s [%s]",
get_oper_name(source_p), tkline_time / 60, user, host, target_server, reason);
else
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s is adding a K-Line for [%s@%s] on %s [%s]",
get_oper_name(source_p), user, host, target_server, reason);
propagate_generic(source_p, "KLINE", target_server, CAP_KLN, propagate_generic(source_p, "KLINE", target_server, CAP_KLN,
"%d %s %s :%s", tkline_time, user, host, reason); "%d %s %s :%s", tkline_time, user, host, reason);
@ -390,6 +399,9 @@ mo_unkline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour
return; return;
} }
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is removing the K-Line for [%s@%s] on %s",
get_oper_name(source_p), user, host, parv[3]);
propagate_generic(source_p, "UNKLINE", parv[3], CAP_UNKLN, "%s %s", user, host); propagate_generic(source_p, "UNKLINE", parv[3], CAP_UNKLN, "%s %s", user, host);
if(match(parv[3], me.name) == 0) if(match(parv[3], me.name) == 0)

View file

@ -130,6 +130,13 @@ mo_resv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
/* remote resv.. */ /* remote resv.. */
if(target_server) if(target_server)
{ {
if (temp_time)
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is adding a %d min. RESV for [%s] on %s [%s]",
get_oper_name(source_p), temp_time / 60, name, target_server, reason);
else
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is adding a permanent RESV for [%s] on %s [%s]",
get_oper_name(source_p), name, target_server, reason);
propagate_resv(source_p, target_server, temp_time, name, reason); propagate_resv(source_p, target_server, temp_time, name, reason);
if(match(target_server, me.name) == 0) if(match(target_server, me.name) == 0)

View file

@ -154,7 +154,7 @@ quote_autoconnall(struct Client *source_p, const char *arg, int newval)
{ {
if(newval >= 0) if(newval >= 0)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s has changed AUTOCONNALL to %i", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has changed AUTOCONNALL to %i",
source_p->name, newval); source_p->name, newval);
GlobalSetOptions.autoconn = newval; GlobalSetOptions.autoconn = newval;
@ -174,7 +174,7 @@ quote_floodcount(struct Client *source_p, const char *arg, int newval)
if(newval >= 0) if(newval >= 0)
{ {
GlobalSetOptions.floodcount = newval; GlobalSetOptions.floodcount = newval;
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed FLOODCOUNT to %i", source_p->name, "%s has changed FLOODCOUNT to %i", source_p->name,
GlobalSetOptions.floodcount); GlobalSetOptions.floodcount);
} }
@ -198,7 +198,7 @@ quote_identtimeout(struct Client *source_p, const char *arg, int newval)
if(newval > 0) if(newval > 0)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed IDENTTIMEOUT to %d", "%s has changed IDENTTIMEOUT to %d",
get_oper_name(source_p), newval); get_oper_name(source_p), newval);
GlobalSetOptions.ident_timeout = newval; GlobalSetOptions.ident_timeout = newval;
@ -232,7 +232,7 @@ quote_max(struct Client *source_p, const char *arg, int newval)
GlobalSetOptions.maxclients = newval; GlobalSetOptions.maxclients = newval;
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s!%s@%s set new MAXCLIENTS to %d (%lu current)", "%s!%s@%s set new MAXCLIENTS to %d (%lu current)",
source_p->name, source_p->username, source_p->host, source_p->name, source_p->username, source_p->host,
GlobalSetOptions.maxclients, GlobalSetOptions.maxclients,
@ -260,7 +260,7 @@ quote_operstring(struct Client *source_p, const char *arg, int newval)
rb_strlcpy(GlobalSetOptions.operstring, arg, rb_strlcpy(GlobalSetOptions.operstring, arg,
sizeof(GlobalSetOptions.operstring)); sizeof(GlobalSetOptions.operstring));
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed OPERSTRING to '%s'", "%s has changed OPERSTRING to '%s'",
get_oper_name(source_p), arg); get_oper_name(source_p), arg);
} }
@ -279,7 +279,7 @@ quote_adminstring(struct Client *source_p, const char *arg, int newval)
rb_strlcpy(GlobalSetOptions.adminstring, arg, rb_strlcpy(GlobalSetOptions.adminstring, arg,
sizeof(GlobalSetOptions.adminstring)); sizeof(GlobalSetOptions.adminstring));
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed ADMINSTRING to '%s'", "%s has changed ADMINSTRING to '%s'",
get_oper_name(source_p), arg); get_oper_name(source_p), arg);
} }
@ -293,7 +293,7 @@ quote_spamnum(struct Client *source_p, const char *arg, int newval)
{ {
if(newval == 0) if(newval == 0)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has disabled ANTI_SPAMBOT", source_p->name); "%s has disabled ANTI_SPAMBOT", source_p->name);
GlobalSetOptions.spam_num = newval; GlobalSetOptions.spam_num = newval;
return; return;
@ -306,7 +306,7 @@ quote_spamnum(struct Client *source_p, const char *arg, int newval)
{ {
GlobalSetOptions.spam_num = newval; GlobalSetOptions.spam_num = newval;
} }
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s has changed SPAMNUM to %i", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has changed SPAMNUM to %i",
source_p->name, GlobalSetOptions.spam_num); source_p->name, GlobalSetOptions.spam_num);
} }
else else
@ -329,7 +329,7 @@ quote_spamtime(struct Client *source_p, const char *arg, int newval)
{ {
GlobalSetOptions.spam_time = newval; GlobalSetOptions.spam_time = newval;
} }
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s has changed SPAMTIME to %i", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has changed SPAMTIME to %i",
source_p->name, GlobalSetOptions.spam_time); source_p->name, GlobalSetOptions.spam_time);
} }
else else
@ -372,7 +372,7 @@ quote_splitmode(struct Client *source_p, const char *charval, int intval)
/* OFF */ /* OFF */
if(newval == 0) if(newval == 0)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s is disabling splitmode", get_oper_name(source_p)); "%s is disabling splitmode", get_oper_name(source_p));
splitmode = false; splitmode = false;
@ -384,7 +384,7 @@ quote_splitmode(struct Client *source_p, const char *charval, int intval)
/* ON */ /* ON */
else if(newval == 1) else if(newval == 1)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s is enabling and activating splitmode", "%s is enabling and activating splitmode",
get_oper_name(source_p)); get_oper_name(source_p));
@ -398,7 +398,7 @@ quote_splitmode(struct Client *source_p, const char *charval, int intval)
/* AUTO */ /* AUTO */
else if(newval == 2) else if(newval == 2)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s is enabling automatic splitmode", "%s is enabling automatic splitmode",
get_oper_name(source_p)); get_oper_name(source_p));
@ -421,7 +421,7 @@ quote_splitnum(struct Client *source_p, const char *arg, int newval)
{ {
if(newval >= 0) if(newval >= 0)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed SPLITNUM to %i", source_p->name, newval); "%s has changed SPLITNUM to %i", source_p->name, newval);
split_servers = newval; split_servers = newval;
@ -438,7 +438,7 @@ quote_splitusers(struct Client *source_p, const char *arg, int newval)
{ {
if(newval >= 0) if(newval >= 0)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"%s has changed SPLITUSERS to %i", source_p->name, newval); "%s has changed SPLITUSERS to %i", source_p->name, newval);
split_users = newval; split_users = newval;

View file

@ -253,7 +253,7 @@ ms_signon(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(!clean_nick(parv[1], 0)) if(!clean_nick(parv[1], 0))
{ {
ServerStats.is_kill++; ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Bad Nick from SIGNON: %s From: %s(via %s)", "Bad Nick from SIGNON: %s From: %s(via %s)",
parv[1], source_p->servptr->name, client_p->name); parv[1], source_p->servptr->name, client_p->name);
/* if source_p has an id, kill_client_serv_butone() will /* if source_p has an id, kill_client_serv_butone() will
@ -271,7 +271,7 @@ ms_signon(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(!clean_username(parv[2]) || !clean_host(parv[3])) if(!clean_username(parv[2]) || !clean_host(parv[3]))
{ {
ServerStats.is_kill++; ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL, sendto_realops_snomask(SNO_DEBUG, L_NETWIDE,
"Bad user@host from SIGNON: %s@%s From: %s(via %s)", "Bad user@host from SIGNON: %s@%s From: %s(via %s)",
parv[2], parv[3], source_p->servptr->name, client_p->name); parv[2], parv[3], source_p->servptr->name, client_p->name);
/* if source_p has an id, kill_client_serv_butone() will /* if source_p has an id, kill_client_serv_butone() will
@ -311,7 +311,7 @@ ms_signon(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
{ {
if(!newts || !target_p->tsinfo || (newts == target_p->tsinfo) || !source_p->user) if(!newts || !target_p->tsinfo || (newts == target_p->tsinfo) || !source_p->user)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Nick change collision from SIGNON from %s to %s(%s <- %s)(both killed)", "Nick change collision from SIGNON from %s to %s(%s <- %s)(both killed)",
source_p->name, target_p->name, target_p->from->name, source_p->name, target_p->name, target_p->from->name,
client_p->name); client_p->name);
@ -341,12 +341,12 @@ ms_signon(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
(!sameuser && newts > target_p->tsinfo)) (!sameuser && newts > target_p->tsinfo))
{ {
if(sameuser) if(sameuser)
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Nick change collision from SIGNON from %s to %s(%s <- %s)(older killed)", "Nick change collision from SIGNON from %s to %s(%s <- %s)(older killed)",
source_p->name, target_p->name, source_p->name, target_p->name,
target_p->from->name, client_p->name); target_p->from->name, client_p->name);
else else
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Nick change collision from SIGNON from %s to %s(%s <- %s)(newer killed)", "Nick change collision from SIGNON from %s to %s(%s <- %s)(newer killed)",
source_p->name, target_p->name, source_p->name, target_p->name,
target_p->from->name, client_p->name); target_p->from->name, client_p->name);
@ -371,12 +371,12 @@ ms_signon(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
else else
{ {
if(sameuser) if(sameuser)
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Nick collision from SIGNON on %s(%s <- %s)(older killed)", "Nick collision from SIGNON on %s(%s <- %s)(older killed)",
target_p->name, target_p->from->name, target_p->name, target_p->from->name,
client_p->name); client_p->name);
else else
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Nick collision from SIGNON on %s(%s <- %s)(newer killed)", "Nick collision from SIGNON on %s(%s <- %s)(newer killed)",
target_p->name, target_p->from->name, target_p->name, target_p->from->name,
client_p->name); client_p->name);

View file

@ -67,7 +67,7 @@ ms_svinfo(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(TS_CURRENT < atoi(parv[2]) || atoi(parv[1]) < TS_MIN) if(TS_CURRENT < atoi(parv[2]) || atoi(parv[1]) < TS_MIN)
{ {
/* TS version is too low on one of the sides, drop the link */ /* TS version is too low on one of the sides, drop the link */
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s dropped, wrong TS protocol version (%s,%s)", "Link %s dropped, wrong TS protocol version (%s,%s)",
source_p->name, parv[1], parv[2]); source_p->name, parv[1], parv[2]);
snprintf(squitreason, sizeof squitreason, "Incompatible TS version (%s,%s)", snprintf(squitreason, sizeof squitreason, "Incompatible TS version (%s,%s)",
@ -85,7 +85,7 @@ ms_svinfo(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if(deltat > ConfigFileEntry.ts_max_delta) if(deltat > ConfigFileEntry.ts_max_delta)
{ {
sendto_realops_snomask(SNO_GENERAL, L_ALL, sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Link %s dropped, excessive TS delta" "Link %s dropped, excessive TS delta"
" (my TS=%ld, their TS=%ld, delta=%ld)", " (my TS=%ld, their TS=%ld, delta=%ld)",
source_p->name, source_p->name,

View file

@ -148,6 +148,13 @@ mo_xline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
if(target_server != NULL) if(target_server != NULL)
{ {
if (temp_time)
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is adding a temporary %d min. X-Line for [%s] on %s [%s]",
get_oper_name(source_p), temp_time / 60, name, target_server, reason);
else
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is adding a permanent X-Line for [%s] on %s [%s]",
get_oper_name(source_p), name, target_server, reason);
propagate_xline(source_p, target_server, temp_time, name, "2", reason); propagate_xline(source_p, target_server, temp_time, name, "2", reason);
if(!match(target_server, me.name)) if(!match(target_server, me.name))
@ -396,6 +403,9 @@ mo_unxline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour
return; return;
} }
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is removing the X-Line for [%s] on %s.",
get_oper_name(source_p), parv[1], parv[3]);
propagate_generic(source_p, "UNXLINE", parv[3], CAP_CLUSTER, "%s", parv[1]); propagate_generic(source_p, "UNXLINE", parv[3], CAP_CLUSTER, "%s", parv[1]);
if(match(parv[3], me.name) == 0) if(match(parv[3], me.name) == 0)