summaryrefslogtreecommitdiff
path: root/modules/hostserv/hostserv.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/hostserv.cpp
parentf80bdf06bace6d3e5c50ed982fe1c14451ae4518 (diff)
Avoid NickAlias lookups by storing a pointer in the NickCore.
Diffstat (limited to 'modules/hostserv/hostserv.cpp')
-rw-r--r--modules/hostserv/hostserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hostserv/hostserv.cpp b/modules/hostserv/hostserv.cpp
index 81257cf4f..39b49ec29 100644
--- a/modules/hostserv/hostserv.cpp
+++ b/modules/hostserv/hostserv.cpp
@@ -43,7 +43,7 @@ public:
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 || !na->HasVHost())
return;