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