summaryrefslogtreecommitdiff
path: root/modules/protocol/inspircd.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-15 12:42:13 +0000
committerSadie Powell <sadie@witchery.services>2024-03-15 12:42:13 +0000
commit753119c4a16f6dafacbeb3d98fe72133badca949 (patch)
treeac57504794ae2ff44a98207c77ef087d9a2a4c38 /modules/protocol/inspircd.cpp
parentd996c3aa8fccb032332aa8e2ea12d07127cae969 (diff)
Use consistent casing when referring to vhosts and vidents.
Diffstat (limited to 'modules/protocol/inspircd.cpp')
-rw-r--r--modules/protocol/inspircd.cpp20
1 files changed, 10 insertions, 10 deletions
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;