summaryrefslogtreecommitdiff
path: root/modules/hostserv/hostserv.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 11:09:50 +0000
commit1a8ae513b43d6f5ab5f83740c73d018eafb44d9a (patch)
treec5a8c9c1fc246cf7fa691da01afb941809afe1f4 /modules/hostserv/hostserv.cpp
parentd15ac93a8f5fb5c939807807be52108f7d49f8ed (diff)
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/hostserv/hostserv.cpp')
-rw-r--r--modules/hostserv/hostserv.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/hostserv/hostserv.cpp b/modules/hostserv/hostserv.cpp
index 17c820377..bdd1920e1 100644
--- a/modules/hostserv/hostserv.cpp
+++ b/modules/hostserv/hostserv.cpp
@@ -59,10 +59,8 @@ public:
if (HostServ)
{
- if (!na->GetVhostIdent().empty())
- u->SendMessage(HostServ, _("Your vhost of \002%s\002@\002%s\002 is now activated."), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str());
- else
- u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."), na->GetVhostHost().c_str());
+ u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."),
+ na->GetVhostMask().c_str());
}
}
}
@@ -107,10 +105,8 @@ public:
if (HostServ)
{
- if (!na->GetVhostIdent().empty())
- u->SendMessage(HostServ, _("Your vhost of \002%s\002@\002%s\002 is now activated."), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str());
- else
- u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."), na->GetVhostHost().c_str());
+ u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."),
+ na->GetVhostMask().c_str());
}
}
}