summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_on.cpp
diff options
context:
space:
mode:
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());