From e7dd7159b1e1ab5b3edabc44ece5338672f8fbb4 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Oct 2016 19:51:39 -0400 Subject: Make vhosts assignable to accounts, not nicks. Allow multiple vhosts per account. --- modules/webcpanel/pages/hostserv/request.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/webcpanel/pages/hostserv/request.cpp') 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("hostserv/request")) replacements["CAN_REQUEST"] = "YES"; -- cgit