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/unrealircd.cpp | |
parent | d996c3aa8fccb032332aa8e2ea12d07127cae969 (diff) |
Use consistent casing when referring to vhosts and vidents.
Diffstat (limited to 'modules/protocol/unrealircd.cpp')
-rw-r--r-- | modules/protocol/unrealircd.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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"); |