summaryrefslogtreecommitdiff
path: root/src/commands/cmd_oper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_oper.cpp')
-rw-r--r--src/commands/cmd_oper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp
index dc06d87ce..1ce7dc49d 100644
--- a/src/commands/cmd_oper.cpp
+++ b/src/commands/cmd_oper.cpp
@@ -66,7 +66,7 @@ CmdResult CommandOper::Handle (const std::vector<std::string>& parameters, User
ServerInstance->Config->ConfValue(ServerInstance->Config->config_data, "oper", "hash", i, HashType, MAXBUF);
match_login = (LoginName == parameters[0]);
- match_pass = !ServerInstance->PassCompare(user, Password,parameters[1].c_str(), HashType);
+ match_pass = !ServerInstance->PassCompare(user, Password, parameters[1], HashType);
match_hosts = OneOfMatches(TheHost,TheIP,HostName);
if (match_login && match_pass && match_hosts)