From 2c374395aaaffc7091e3f3ffef47089faf16eb2b Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Wed, 11 Aug 2021 20:48:07 +0200 Subject: [PATCH] Newlog: Use _DENIED instead of _REJECTED everywhere to be consistent, eg LINK_REJECTED_SID_COLLISION -> LINK_DENIED_SID_COLLISION since 15+ other ones also start with LINK_DENIED... Expand it to other areas as well eg antirandom. --- src/modules/antirandom.c | 4 ++-- src/modules/protoctl.c | 6 +++--- src/modules/server.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/antirandom.c b/src/modules/antirandom.c index 468082d0c..878466e53 100644 --- a/src/modules/antirandom.c +++ b/src/modules/antirandom.c @@ -862,14 +862,14 @@ int antirandom_preconnect(Client *client) { if (cfg.ban_action == BAN_ACT_WARN) { - unreal_log(ULOG_INFO, "antirandom", "ANTIRANDOM_REJECTED_USER", client, + unreal_log(ULOG_INFO, "antirandom", "ANTIRANDOM_DENIED_USER", client, "[antirandom] would have denied access to user with score $score: $client:$client.info", log_data_integer("score", score)); return HOOK_CONTINUE; } if (cfg.show_failedconnects) { - unreal_log(ULOG_INFO, "antirandom", "ANTIRANDOM_REJECTED_USER", client, + unreal_log(ULOG_INFO, "antirandom", "ANTIRANDOM_DENIED_USER", client, "[antirandom] denied access to user with score $score: $client:$client.info", log_data_integer("score", score)); } diff --git a/src/modules/protoctl.c b/src/modules/protoctl.c index 912f55024..cf107e506 100644 --- a/src/modules/protoctl.c +++ b/src/modules/protoctl.c @@ -124,7 +124,7 @@ CMD_FUNC(cmd_protoctl) */ if (strstr(charsys_get_current_languages(), "utf8") && !strstr(value, "utf8")) { - unreal_log(ULOG_ERROR, "link", "LINK_REJECTED_CHARSYS_INCOMPATIBLE", client, + unreal_log(ULOG_ERROR, "link", "LINK_DENIED_CHARSYS_INCOMPATIBLE", client, "Server link $client rejected. Server $me_name has utf8 in set::allowed-nickchars but $client does not.", log_data_string("me_name", me.name)); exit_client(client, NULL, "Incompatible set::allowed-nickchars setting"); @@ -156,7 +156,7 @@ CMD_FUNC(cmd_protoctl) their_value = allowed_channelchars_strtoval(value); if (their_value != iConf.allowed_channelchars) { - unreal_log(ULOG_ERROR, "link", "LINK_REJECTED_ALLOWED_CHANNELCHARS_INCOMPATIBLE", client, + unreal_log(ULOG_ERROR, "link", "LINK_DENIED_ALLOWED_CHANNELCHARS_INCOMPATIBLE", client, "Server link $client rejected. Server has set::allowed-channelchars setting " "of $their_allowed_channelchars, while we have $our_allowed_channelchars.\n" "Please set set::allowed-channelchars to the same value on all servers.", @@ -197,7 +197,7 @@ CMD_FUNC(cmd_protoctl) if ((aclient = hash_find_id(sid, NULL)) != NULL) { - unreal_log(ULOG_ERROR, "link", "LINK_REJECTED_SID_COLLISION", client, + unreal_log(ULOG_ERROR, "link", "LINK_DENIED_SID_COLLISION", client, "Server link $client rejected. Server with SID $sid already exist via uplink $exiting_client.uplink.", log_data_string("sid", sid), log_data_client("existing_client", aclient)); diff --git a/src/modules/server.c b/src/modules/server.c index 2405c4c59..cdb5b0e6c 100644 --- a/src/modules/server.c +++ b/src/modules/server.c @@ -957,7 +957,7 @@ CMD_FUNC(cmd_server) hop = atol(parv[2]); if (hop != 1) { - unreal_log(ULOG_ERROR, "link", "LINK_REJECTED_INVALID_HOPCOUNT", client, + unreal_log(ULOG_ERROR, "link", "LINK_DENIED_INVALID_HOPCOUNT", client, "Server link $servername rejected. Directly linked server provided a hopcount of $hopcount, while 1 was expected.", log_data_string("servername", servername), log_data_integer("hopcount", hop)); @@ -1005,7 +1005,7 @@ CMD_FUNC(cmd_server) if (deny->flag.type == CRULE_ALL && unreal_mask_match_string(servername, deny->mask) && crule_eval(deny->rule)) { - unreal_log(ULOG_ERROR, "link", "LINK_REJECTED_DENY_LINK_BLOCK", client, + unreal_log(ULOG_ERROR, "link", "LINK_DENIED_DENY_LINK_BLOCK", client, "Server link $servername rejected by deny link { } block.", log_data_string("servername", servername)); exit_client(client, NULL, "Disallowed by connection rule");