summaryrefslogtreecommitdiff
path: root/modules/webcpanel/pages/hostserv/request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webcpanel/pages/hostserv/request.cpp')
-rw-r--r--modules/webcpanel/pages/hostserv/request.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/webcpanel/pages/hostserv/request.cpp b/modules/webcpanel/pages/hostserv/request.cpp
index dc782361c..92f01f010 100644
--- a/modules/webcpanel/pages/hostserv/request.cpp
+++ b/modules/webcpanel/pages/hostserv/request.cpp
@@ -33,13 +33,10 @@ bool WebCPanel::HostServ::Request::OnRequest(HTTPProvider *server, const Anope::
WebPanel::RunCommand(na->GetAccount()->GetDisplay(), na->GetAccount(), "HostServ", "hostserv/request", params, replacements, "CMDR");
}
- ::HostServ::VHost *vhost = na->GetVHost();
+ ::HostServ::VHost *vhost = ::HostServ::FindVHost(na->GetAccount());
if (vhost != nullptr)
{
- if (vhost->GetIdent().empty() == false)
- replacements["VHOST"] = vhost->GetIdent() + "@" + vhost->GetHost();
- else
- replacements["VHOST"] = vhost->GetHost();
+ replacements["VHOST"] = vhost->Mask();
}
if (ServiceReference<Command>("hostserv/request"))
replacements["CAN_REQUEST"] = "YES";