1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 22:06:39 +02:00

Avoid NickAlias lookups by storing a pointer in the NickCore.

This commit is contained in:
Sadie Powell
2024-06-03 15:51:29 +01:00
parent f80bdf06ba
commit e71a9e2894
10 changed files with 22 additions and 7 deletions
+5
View File
@@ -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)