From db4f845fe78f82bca4bdb9e44cc785a5a3947d37 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 4 Mar 2024 10:36:10 +0000 Subject: Add NickAlias::GetVhostMask for getting the vident@vhost. --- modules/webcpanel/pages/hostserv/request.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 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 373686600..0a8513c76 100644 --- a/modules/webcpanel/pages/hostserv/request.cpp +++ b/modules/webcpanel/pages/hostserv/request.cpp @@ -22,12 +22,7 @@ bool WebCPanel::HostServ::Request::OnRequest(HTTPProvider *server, const Anope:: } if (na->HasVhost()) - { - if (!na->GetVhostIdent().empty()) - replacements["VHOST"] = na->GetVhostIdent() + "@" + na->GetVhostHost(); - else - replacements["VHOST"] = na->GetVhostHost(); - } + replacements["VHOST"] = na->GetVhostMask(); if (ServiceReference("Command", "hostserv/request")) replacements["CAN_REQUEST"] = "YES"; TemplateFileServer page("hostserv/request.html"); -- cgit