diff options
author | Adam <Adam@anope.org> | 2016-10-09 19:51:39 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-09 19:51:39 -0400 |
commit | e7dd7159b1e1ab5b3edabc44ece5338672f8fbb4 (patch) | |
tree | 9517f02ca1c29fa247f6914398f35a44052c22ff /modules/webcpanel/pages/nickserv/info.cpp | |
parent | 8ceca4fd3f9cb82bc93801d5eb682d27b2ad2f54 (diff) |
Make vhosts assignable to accounts, not nicks. Allow multiple vhosts per account.
Diffstat (limited to 'modules/webcpanel/pages/nickserv/info.cpp')
-rw-r--r-- | modules/webcpanel/pages/nickserv/info.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/webcpanel/pages/nickserv/info.cpp b/modules/webcpanel/pages/nickserv/info.cpp index 7b0f5d64f..5dc9eed03 100644 --- a/modules/webcpanel/pages/nickserv/info.cpp +++ b/modules/webcpanel/pages/nickserv/info.cpp @@ -101,13 +101,10 @@ bool WebCPanel::NickServ::Info::OnRequest(HTTPProvider *server, const Anope::str replacements["EMAIL"] = HTTPUtils::Escape(na->GetAccount()->GetEmail()); replacements["TIME_REGISTERED"] = Anope::strftime(na->GetTimeRegistered(), na->GetAccount()); - ::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(); } Anope::string *greet = na->GetAccount()->GetExt<Anope::string>("greet"); |