X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusers.cpp;h=4968c7a37f093a4226dafb1d0f2d3a14dbcbe91f;hb=3fc88ba7c97a5db3bfbb0c422afd4e180271b348;hp=2458e156530eacd881d4df8a63523eaf6a7e893a;hpb=48869b38e938de4d8dd4cdff486b10348e81f7b6;p=user%2Fhenk%2Fcode%2Finspircd.git 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;