summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_on.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-03 15:51:29 +0100
committerSadie Powell <sadie@witchery.services>2024-06-03 16:04:53 +0100
commite71a9e289441fd78ffa1bd3d8c20ea2cb8542426 (patch)
tree95def1c721754ed095e2ca9654892343f611a953 /modules/hostserv/hs_on.cpp
parentf80bdf06bace6d3e5c50ed982fe1c14451ae4518 (diff)
Avoid NickAlias lookups by storing a pointer in the NickCore.
Diffstat (limited to 'modules/hostserv/hs_on.cpp')
-rw-r--r--modules/hostserv/hs_on.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hostserv/hs_on.cpp b/modules/hostserv/hs_on.cpp
index d61975b0b..6d4904042 100644
--- a/modules/hostserv/hs_on.cpp
+++ b/modules/hostserv/hs_on.cpp
@@ -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());