diff options
| author | 2014-01-18 04:53:52 +0000 | |
|---|---|---|
| committer | 2014-01-25 12:20:04 +0100 | |
| commit | 074727e7a74f8dcef6c250faf6a757f0274d27db (patch) | |
| tree | ad38267d13fd59936770ee2b20e018b57d56852e /src/users.cpp | |
| parent | Destroy Memberships of a quitting user in QuitUser() instead of in cull() (diff) | |
| download | inspircd++-074727e7a74f8dcef6c250faf6a757f0274d27db.tar.gz inspircd++-074727e7a74f8dcef6c250faf6a757f0274d27db.tar.bz2 inspircd++-074727e7a74f8dcef6c250faf6a757f0274d27db.zip | |
Convert InspIRCd::PassCompare to return bool instead of int.
The insane behaviour of this method was due to an implementation
detail which has since become irrelevent.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 2458e1565..4968c7a37 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1239,7 +1239,7 @@ void LocalUser::SetClass(const std::string &explicit_name) if (regdone && !c->config->getString("password").empty()) { - if (ServerInstance->PassCompare(this, c->config->getString("password"), password, c->config->getString("hash"))) + if (!ServerInstance->PassCompare(this, c->config->getString("password"), password, c->config->getString("hash"))) { ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "Bad password, skipping"); continue; |
