diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index c2a4664ac3..c15246e8cc 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -2122,21 +2122,22 @@ static const std::initializer_listContains(authorized_key)) { IConsolePrint(CC_WARNING, "Not added {} to {} as it already exists.", authorized_key, name); return; @@ -2151,7 +2152,7 @@ static void PerformNetworkAuthorizedKeyAction(std::string_view name, NetworkAuth IConsolePrint(CC_INFO, "Added {} to {}.", authorized_key, name); return; - case CNAKA_REMOVE: + case ConNetworkAuthorizedKeyAction::Remove: if (!authorized_keys->Contains(authorized_key)) { IConsolePrint(CC_WARNING, "Not removed {} from {} as it does not exist.", authorized_key, name); return; @@ -2187,18 +2188,18 @@ static bool ConNetworkAuthorizedKey(std::span argv) ConNetworkAuthorizedKeyAction action; std::string_view action_string = argv[1]; if (StrEqualsIgnoreCase(action_string, "list")) { - action = CNAKA_LIST; + action = ConNetworkAuthorizedKeyAction::List; } else if (StrEqualsIgnoreCase(action_string, "add")) { - action = CNAKA_ADD; + action = ConNetworkAuthorizedKeyAction::Add; } else if (StrEqualsIgnoreCase(action_string, "remove") || StrEqualsIgnoreCase(action_string, "delete")) { - action = CNAKA_REMOVE; + action = ConNetworkAuthorizedKeyAction::Remove; } else { IConsolePrint(CC_WARNING, "No valid action was given."); return false; } std::string authorized_key; - if (action != CNAKA_LIST) { + if (action != ConNetworkAuthorizedKeyAction::List) { if (argv.size() <= 3) { IConsolePrint(CC_ERROR, "You must enter the key."); return false;