diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-04 10:36:10 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-04 11:09:50 +0000 |
| commit | 1a8ae513b43d6f5ab5f83740c73d018eafb44d9a (patch) | |
| tree | c5a8c9c1fc246cf7fa691da01afb941809afe1f4 /modules/hostserv/hs_on.cpp | |
| parent | d15ac93a8f5fb5c939807807be52108f7d49f8ed (diff) | |
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/hostserv/hs_on.cpp')
| -rw-r--r-- | modules/hostserv/hs_on.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/hostserv/hs_on.cpp b/modules/hostserv/hs_on.cpp index c8c01b7b2..e37b1278e 100644 --- a/modules/hostserv/hs_on.cpp +++ b/modules/hostserv/hs_on.cpp @@ -32,11 +32,8 @@ public: na = NickAlias::Find(u->Account()->display); if (na && u->Account() == na->nc && na->HasVhost()) { - if (!na->GetVhostIdent().empty()) - source.Reply(_("Your vhost of \002%s\002@\002%s\002 is now activated."), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str()); - else - source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVhostHost().c_str()); - Log(LOG_COMMAND, source, this) << "to enable their vhost of " << (!na->GetVhostIdent().empty() ? na->GetVhostIdent() + "@" : "") << na->GetVhostHost(); + source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVhostMask().c_str()); + Log(LOG_COMMAND, source, this) << "to enable their vhost of " << na->GetVhostMask(); IRCD->SendVhost(u, na->GetVhostIdent(), na->GetVhostHost()); u->vhost = na->GetVhostHost(); if (IRCD->CanSetVIdent && !na->GetVhostIdent().empty()) |
