summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-03 15:51:29 +0100
committerSadie Powell <sadie@witchery.services>2024-06-03 16:04:53 +0100
commite71a9e289441fd78ffa1bd3d8c20ea2cb8542426 (patch)
tree95def1c721754ed095e2ca9654892343f611a953 /src/users.cpp
parentf80bdf06bace6d3e5c50ed982fe1c14451ae4518 (diff)
Avoid NickAlias lookups by storing a pointer in the NickCore.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp5
1 files changed, 5 insertions, 0 deletions
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)