aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-14 15:48:57 +0000
committerGravatar Sadie Powell2021-12-14 15:48:57 +0000
commit64340dc50901f88336d9a2933dad98b462b6f36b (patch)
treee3512ff37a0ae8dd1b2c87a54382e6cf5325f49f /src/users.cpp
parentAdd a build time check that OpenLDAP is reentrant. (diff)
Sync uniqueusername from the connect class to the user.
This is a massive hack for now but should be made to sync properly in v4 when we have extensibles that don't suck.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6d8766082..fc66cf70c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -84,6 +84,7 @@ User::User(const std::string& uid, Server* srv, UserType type)
, server(srv)
, registered(REG_NONE)
, quitting(false)
+ , uniqueusername(false)
, usertype(type)
{
client_sa.sa.sa_family = AF_UNSPEC;
@@ -555,6 +556,7 @@ void LocalUser::CheckClass(bool clone_count)
}
this->nextping = ServerInstance->Time() + a->GetPingTime();
+ this->uniqueusername = a->uniqueusername;
}
bool LocalUser::CheckLines(bool doZline)