aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-03-18 18:34:50 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:40 -0400
commit5ca0e82c4d24101d66dd55e609f9780c5c51fef9 (patch)
tree81a045374006e5db471b907a8524f2550d145f32 /src/users.cpp
parentMake /etc/resolv.conf reader slightly less stupid (diff)
Only check password during second connect block check; add registered="yes" to get the previous behavior
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 4c2804db2..e877985f0 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1632,7 +1632,7 @@ void LocalUser::SetClass(const std::string &explicit_name)
continue;
}
- if (!c->config->getString("pass").empty())
+ if (regdone && !c->config->getString("pass").empty())
{
if (ServerInstance->PassCompare(this, c->config->getString("pass"), password, c->config->getString("hash")))
{