summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorMatt Schatz <genius3000@g3k.solutions>2020-04-14 04:51:05 -0600
committerMatt Schatz <genius3000@g3k.solutions>2020-04-14 06:15:40 -0600
commit85bd27a84087397c8ac7e4e026f4187888931262 (patch)
tree3536423ba2b2e72d157dfa9cf8fceb76d21ef0e7 /src/coremods
parent6ce92e8eb0fa1bf253da2c16d3cd9cdede5899a6 (diff)
Minor cleanup and documentation improvements.
- Only show a generic failure message to the user upon oper failure due to not having a secure connection or matching cert. fingerprint. - Update the comment about oper:fingerprint as it can be a space separated list of fingerprints and not just one. - Improve a few code comments and formatting.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_oper/cmd_oper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coremods/core_oper/cmd_oper.cpp b/src/coremods/core_oper/cmd_oper.cpp
index 391c7f41f..f1da883e8 100644
--- a/src/coremods/core_oper/cmd_oper.cpp
+++ b/src/coremods/core_oper/cmd_oper.cpp
@@ -53,7 +53,6 @@ CmdResult CommandOper::HandleLocal(LocalUser* user, const Params& parameters)
if (match_pass && match_hosts)
{
- /* found this oper's opertype */
user->Oper(ifo);
return CMD_SUCCESS;
}
@@ -68,7 +67,7 @@ CmdResult CommandOper::HandleLocal(LocalUser* user, const Params& parameters)
fields.append("hosts ");
fields.erase(fields.length() - 1, 1);
- // tell them they suck, and lag them up to help prevent brute-force attacks
+ // Tell them they failed (generically) and lag them up to help prevent brute-force attacks
user->WriteNumeric(ERR_NOOPERHOST, "Invalid oper credentials");
user->CommandFloodPenalty += 10000;