summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Schatz <genius3000@g3k.solutions>2020-04-09 06:53:56 -0600
committerMatt Schatz <genius3000@g3k.solutions>2020-04-09 06:57:30 -0600
commit2ec69dcc736f395bdbcf8e9e0ee5bc179d48eff7 (patch)
tree9e5e7adf52cb04c6d33cf559a4f0c8f84cdbd184 /src
parent160649b7673392a9084be0492ac65a332d42cbd0 (diff)
Prevent a trailing space in the failed oper SNOTICE.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_oper/cmd_oper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coremods/core_oper/cmd_oper.cpp b/src/coremods/core_oper/cmd_oper.cpp
index c6b2955bf..391c7f41f 100644
--- a/src/coremods/core_oper/cmd_oper.cpp
+++ b/src/coremods/core_oper/cmd_oper.cpp
@@ -65,7 +65,8 @@ CmdResult CommandOper::HandleLocal(LocalUser* user, const Params& parameters)
if (!match_pass)
fields.append("password ");
if (!match_hosts)
- fields.append("hosts");
+ fields.append("hosts ");
+ fields.erase(fields.length() - 1, 1);
// tell them they suck, and lag them up to help prevent brute-force attacks
user->WriteNumeric(ERR_NOOPERHOST, "Invalid oper credentials");