summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 8aeb4a1f6..3f19aa86c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1622,7 +1622,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")))
{