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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user