From e71a9e289441fd78ffa1bd3d8c20ea2cb8542426 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Jun 2024 15:51:29 +0100 Subject: Avoid NickAlias lookups by storing a pointer in the NickCore. --- src/users.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 8273e888d..9462881f1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -430,6 +430,11 @@ NickCore *User::Account() const return this->nc; } +NickAlias *User::AccountNick() const +{ + return this->nc ? this->nc->na : nullptr; +} + bool User::IsIdentified(bool check_nick) const { if (check_nick && this->nc) -- cgit