]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Define comparator for irc::sockets::sockaddrs
[user/henk/code/inspircd.git] / src / users.cpp
index f6010bf38b4fb7c7331742640076a13ffa2561b8..6f28806593c8501cdad3b4543eef3540d3a59064 100644 (file)
@@ -784,6 +784,7 @@ void LocalUser::FullConnect()
         * may put the user into a totally seperate class with different restrictions! so we *must* check again.
         * Don't remove this! -- w00t
         */
+       MyClass = NULL;
        SetClass();
        CheckClass();
        CheckLines();
@@ -1629,9 +1630,9 @@ void LocalUser::SetClass(const std::string &explicit_name)
                                        continue;
                        }
 
-                       if (regdone && !c->config->getString("pass").empty())
+                       if (regdone && !c->config->getString("password").empty())
                        {
-                               if (ServerInstance->PassCompare(this, c->config->getString("pass"), password, c->config->getString("hash")))
+                               if (ServerInstance->PassCompare(this, c->config->getString("password"), password, c->config->getString("hash")))
                                {
                                        ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "Bad password, skipping");
                                        continue;