diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-15 12:42:13 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-15 12:42:13 +0000 |
| commit | 753119c4a16f6dafacbeb3d98fe72133badca949 (patch) | |
| tree | ac57504794ae2ff44a98207c77ef087d9a2a4c38 /modules/protocol | |
| parent | d996c3aa8fccb032332aa8e2ea12d07127cae969 (diff) | |
Use consistent casing when referring to vhosts and vidents.
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/hybrid.cpp | 4 | ||||
| -rw-r--r-- | modules/protocol/inspircd.cpp | 20 | ||||
| -rw-r--r-- | modules/protocol/ngircd.cpp | 10 | ||||
| -rw-r--r-- | modules/protocol/plexus.cpp | 6 | ||||
| -rw-r--r-- | modules/protocol/solanum.cpp | 10 | ||||
| -rw-r--r-- | modules/protocol/unrealircd.cpp | 16 |
6 files changed, 33 insertions, 33 deletions
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp index b060c4f43..0845938de 100644 --- a/modules/protocol/hybrid.cpp +++ b/modules/protocol/hybrid.cpp @@ -263,12 +263,12 @@ public: this->SendSQLineDel(&x); } - void SendVhost(User *u, const Anope::string &ident, const Anope::string &host) override + void SendVHost(User *u, const Anope::string &ident, const Anope::string &host) override { Uplink::Send("SVSHOST", u->GetUID(), u->timestamp, host); } - void SendVhostDel(User *u) override + void SendVHostDel(User *u) override { Uplink::Send("SVSHOST", u->GetUID(), u->timestamp, u->host); } diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp index cd2ad2296..6f8a1a431 100644 --- a/modules/protocol/inspircd.cpp +++ b/modules/protocol/inspircd.cpp @@ -94,14 +94,14 @@ private: return nicks.substr(1); } - static void SendChgIdentInternal(const Anope::string &uid, const Anope::string &vIdent) + static void SendChgIdentInternal(const Anope::string &uid, const Anope::string &vident) { if (!Servers::Capab.count("CHGIDENT")) { Log() << "Unable to change the vident of " << uid << " as the remote server does not have the chgident module loaded."; return; } - Uplink::Send("ENCAP", uid.substr(0, 3), "CHGIDENT", uid, vIdent); + Uplink::Send("ENCAP", uid.substr(0, 3), "CHGIDENT", uid, vident); } static void SendChgHostInternal(const Anope::string &uid, const Anope::string &vhost) @@ -302,7 +302,7 @@ public: } } - void SendVhostDel(User *u) override + void SendVHostDel(User *u) override { UserMode *um = ModeManager::FindUserModeByName("CLOAK"); @@ -477,10 +477,10 @@ public: SendAddLine("Q", x->mask, timeleft, x->by, x->GetReason()); } - 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()) - this->SendChgIdentInternal(u->GetUID(), vIdent); + if (!vident.empty()) + this->SendChgIdentInternal(u->GetUID(), vident); if (!vhost.empty()) this->SendChgHostInternal(u->GetUID(), vhost); @@ -600,11 +600,11 @@ public: if (na) { - if (!na->GetVhostIdent().empty()) - SendChgHostInternal(uid, na->GetVhostIdent()); + if (!na->GetVHostIdent().empty()) + SendChgHostInternal(uid, na->GetVHostIdent()); - if (!na->GetVhostHost().empty()) - SendChgHostInternal(uid, na->GetVhostHost()); + if (!na->GetVHostHost().empty()) + SendChgHostInternal(uid, na->GetVHostHost()); // Mark this SASL session as pending user introduction. SASLUser su; diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index fc56d1055..a6ed1c377 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -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> ¶ms) override diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index 77ab81d38..062c86e6b 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -83,7 +83,7 @@ public: Uplink::Send("ENCAP", u->server->GetName(), "SVSNICK", u->GetUID(), u->timestamp, newnick, when); } - void SendVhost(User *u, const Anope::string &ident, const Anope::string &host) override + void SendVHost(User *u, const Anope::string &ident, const Anope::string &host) override { if (!ident.empty()) Uplink::Send("ENCAP", '*', "CHGIDENT", u->GetUID(), ident); @@ -92,7 +92,7 @@ public: u->SetMode(Config->GetClient("HostServ"), "CLOAK"); } - void SendVhostDel(User *u) override + void SendVHostDel(User *u) override { u->RemoveMode(Config->GetClient("HostServ"), "CLOAK"); } @@ -186,7 +186,7 @@ public: void SendSVSLogin(const Anope::string &uid, NickAlias *na) override { Server *s = Server::Find(uid.substr(0, 3)); - Uplink::Send("ENCAP", s ? s->GetName() : uid.substr(0, 3), "SVSLOGIN", uid, '*', '*', na->GetVhostHost().empty() ? "*" : na->GetVhostHost(), na->nc->display); + Uplink::Send("ENCAP", s ? s->GetName() : uid.substr(0, 3), "SVSLOGIN", uid, '*', '*', na->GetVHostHost().empty() ? "*" : na->GetVHostHost(), na->nc->display); } void SendSVSNOOP(const Server *server, bool set) override diff --git a/modules/protocol/solanum.cpp b/modules/protocol/solanum.cpp index d0ce08d79..3b2e22f85 100644 --- a/modules/protocol/solanum.cpp +++ b/modules/protocol/solanum.cpp @@ -141,14 +141,14 @@ public: Uplink::Send("ENCAP", '*', "NICKDELAY", 0, nick); } - void SendVhost(User *u, const Anope::string &ident, const Anope::string &host) override + void SendVHost(User *u, const Anope::string &ident, const Anope::string &host) override { Uplink::Send("ENCAP", '*', "CHGHOST", u->GetUID(), host); } - void SendVhostDel(User *u) override + void SendVHostDel(User *u) override { - this->SendVhost(u, "", u->host); + this->SendVHost(u, "", u->host); } void SendSASLMessage(const SASL::Message &message) override @@ -166,8 +166,8 @@ public: Server *s = Server::Find(uid.substr(0, 3)); Uplink::Send("ENCAP", s ? s->GetName() : uid.substr(0, 3), "SVSLOGIN", uid, '*', - na && !na->GetVhostIdent().empty() ? na->GetVhostIdent() : '*', - na && !na->GetVhostHost().empty() ? na->GetVhostHost() : '*', + na && !na->GetVHostIdent().empty() ? na->GetVHostIdent() : '*', + na && !na->GetVHostHost().empty() ? na->GetVHostHost() : '*', na ? na->nc->display : "0"); } }; diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp index 195ad617c..eca2e54df 100644 --- a/modules/protocol/unrealircd.cpp +++ b/modules/protocol/unrealircd.cpp @@ -83,7 +83,7 @@ private: Uplink::Send(bi, "PRIVMSG", "$" + dest->GetName(), msg); } - void SendVhostDel(User *u) override + void SendVHostDel(User *u) override { BotInfo *HostServ = Config->GetClient("HostServ"); u->RemoveMode(HostServ, "VHOST"); @@ -199,10 +199,10 @@ private: /* Functions that use serval cmd functions */ - 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("CHGIDENT", u->GetUID(), vIdent); + if (!vident.empty()) + Uplink::Send("CHGIDENT", u->GetUID(), vident); if (!vhost.empty()) Uplink::Send("CHGHOST", u->GetUID(), vhost); @@ -411,11 +411,11 @@ private: if (na) { - if (!na->GetVhostIdent().empty()) - Uplink::Send("CHGIDENT", uid, na->GetVhostIdent()); + if (!na->GetVHostIdent().empty()) + Uplink::Send("CHGIDENT", uid, na->GetVHostIdent()); - if (!na->GetVhostHost().empty()) - Uplink::Send("CHGHOST", uid, na->GetVhostHost()); + if (!na->GetVHostHost().empty()) + Uplink::Send("CHGHOST", uid, na->GetVHostHost()); } Uplink::Send("SVSLOGIN", distmask, uid, na ? na->nc->display : "0"); |
