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 10:36:10 +0000
commitdb4f845fe78f82bca4bdb9e44cc785a5a3947d37 (patch)
tree63f1b943fe2baa3f1fbfbabaa63bf805803b3e8c /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());
}
}
}