1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 18:56:37 +02:00

Add NickAlias::GetVhostMask for getting the vident@vhost.

This commit is contained in:
Sadie Powell
2024-03-04 10:36:10 +00:00
parent d15ac93a8f
commit db4f845fe7
11 changed files with 30 additions and 69 deletions
+2 -8
View File
@@ -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