1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 12:53:13 +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
@@ -29,7 +29,7 @@ public:
User *u = source.GetUser();
const NickAlias *na = NickAlias::Find(u->nick);
if (!na || na->nc != u->Account() || !na->HasVHost())
na = NickAlias::Find(u->Account()->display);
na = u->AccountNick();
if (na && u->Account() == na->nc && na->HasVHost())
{
source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVHostMask().c_str());