1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 07:33:13 +02:00

Use consistent casing when referring to vhosts and vidents.

This commit is contained in:
Sadie Powell
2024-03-15 12:42:13 +00:00
parent d996c3aa8f
commit 753119c4a1
27 changed files with 225 additions and 277 deletions
+5 -5
View File
@@ -125,10 +125,10 @@ public:
Uplink::Send("SERVER", server->GetName(), server->GetHops(), server->GetDescription());
}
void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost) override
void SendVHost(User *u, const Anope::string &vident, const Anope::string &vhost) override
{
if (!vIdent.empty())
Uplink::Send("METADATA", u->nick, "user", vIdent);
if (!vident.empty())
Uplink::Send("METADATA", u->nick, "user", vident);
Uplink::Send("METADATA", u->nick, "cloakhost", vhost);
if (!u->HasMode("CLOAK"))
@@ -138,9 +138,9 @@ public:
}
}
void SendVhostDel(User *u) override
void SendVHostDel(User *u) override
{
this->SendVhost(u, u->GetIdent(), "");
this->SendVHost(u, u->GetIdent(), "");
}
bool Format(Anope::string &message, const Anope::map<Anope::string> &tags, const MessageSource &source, const Anope::string &command, const std::vector<Anope::string> &params) override