1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 04:26: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
+1 -1
View File
@@ -302,7 +302,7 @@ public:
// If the user is already introduced then we log them in now.
// Otherwise, we send an SVSLOGIN to log them in later.
User *user = User::Find(session->uid);
NickAlias *na = nc ? NickAlias::Find(nc->display) : nullptr;
NickAlias *na = nc ? nc->na : nullptr;
if (user)
{
if (na)