]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Remove a few unnecessary .c_str() calls
[user/henk/code/inspircd.git] / src / users.cpp
index 2458e156530eacd881d4df8a63523eaf6a7e893a..4968c7a37f093a4226dafb1d0f2d3a14dbcbe91f 100644 (file)
@@ -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;