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/hs_set.cpp | |
parent | d15ac93a8f5fb5c939807807be52108f7d49f8ed (diff) |
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/hostserv/hs_set.cpp')
-rw-r--r-- | modules/hostserv/hs_set.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/hostserv/hs_set.cpp b/modules/hostserv/hs_set.cpp index 665e24467..261e1e51f 100644 --- a/modules/hostserv/hs_set.cpp +++ b/modules/hostserv/hs_set.cpp @@ -87,10 +87,7 @@ public: na->SetVhost(user, host, source.GetNick()); FOREACH_MOD(OnSetVhost, (na)); - if (!user.empty()) - source.Reply(_("VHost for \002%s\002 set to \002%s\002@\002%s\002."), nick.c_str(), user.c_str(), host.c_str()); - else - source.Reply(_("VHost for \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str()); + source.Reply(_("VHost for \002%s\002 set to \002%s\002."), nick.c_str(), na->GetVhostMask().c_str()); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override @@ -194,10 +191,7 @@ public: na->SetVhost(user, host, source.GetNick()); this->Sync(na); FOREACH_MOD(OnSetVhost, (na)); - if (!user.empty()) - source.Reply(_("VHost for group \002%s\002 set to \002%s\002@\002%s\002."), nick.c_str(), user.c_str(), host.c_str()); - else - source.Reply(_("VHost for group \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str()); + source.Reply(_("VHost for group \002%s\002 set to \002%s\002."), nick.c_str(), na->GetVhostMask().c_str()); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override |