summaryrefslogtreecommitdiff
path: root/modules/webcpanel/pages/hostserv/request.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-04 10:36:10 +0000
committerSadie Powell <sadie@witchery.services>2024-03-04 10:36:10 +0000
commitdb4f845fe78f82bca4bdb9e44cc785a5a3947d37 (patch)
tree63f1b943fe2baa3f1fbfbabaa63bf805803b3e8c /modules/webcpanel/pages/hostserv/request.cpp
parentd15ac93a8f5fb5c939807807be52108f7d49f8ed (diff)
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/webcpanel/pages/hostserv/request.cpp')
-rw-r--r--modules/webcpanel/pages/hostserv/request.cpp7
1 files changed, 1 insertions, 6 deletions
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>("Command", "hostserv/request"))
replacements["CAN_REQUEST"] = "YES";
TemplateFileServer page("hostserv/request.html");