From 64340dc50901f88336d9a2933dad98b462b6f36b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 14 Dec 2021 15:48:57 +0000 Subject: 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. --- src/users.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/users.cpp') 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) -- cgit v1.3.1-10-gc9f91