summaryrefslogtreecommitdiff
path: root/modules/webcpanel/pages/hostserv/request.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-09 19:51:39 -0400
committerAdam <Adam@anope.org>2016-10-09 19:51:39 -0400
commite7dd7159b1e1ab5b3edabc44ece5338672f8fbb4 (patch)
tree9517f02ca1c29fa247f6914398f35a44052c22ff /modules/webcpanel/pages/hostserv/request.cpp
parent8ceca4fd3f9cb82bc93801d5eb682d27b2ad2f54 (diff)
Make vhosts assignable to accounts, not nicks. Allow multiple vhosts per account.
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";