diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_oper/cmd_oper.cpp | 3 |
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"); |