diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-04 10:36:10 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-04 10:36:10 +0000 |
commit | db4f845fe78f82bca4bdb9e44cc785a5a3947d37 (patch) | |
tree | 63f1b943fe2baa3f1fbfbabaa63bf805803b3e8c /modules/hostserv/hostserv.cpp | |
parent | d15ac93a8f5fb5c939807807be52108f7d49f8ed (diff) |
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/hostserv/hostserv.cpp')
-rw-r--r-- | modules/hostserv/hostserv.cpp | 12 |
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()); } } } |