summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_on.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/hostserv/hs_on.cpp
parentd996c3aa8fccb032332aa8e2ea12d07127cae969 (diff)
Use consistent casing when referring to vhosts and vidents.
Diffstat (limited to 'modules/hostserv/hs_on.cpp')
-rw-r--r--modules/hostserv/hs_on.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/hostserv/hs_on.cpp b/modules/hostserv/hs_on.cpp
index e37b1278e..d61975b0b 100644
--- a/modules/hostserv/hs_on.cpp
+++ b/modules/hostserv/hs_on.cpp
@@ -28,16 +28,16 @@ public:
User *u = source.GetUser();
const NickAlias *na = NickAlias::Find(u->nick);
- if (!na || na->nc != u->Account() || !na->HasVhost())
+ if (!na || na->nc != u->Account() || !na->HasVHost())
na = NickAlias::Find(u->Account()->display);
- if (na && u->Account() == na->nc && na->HasVhost())
+ if (na && u->Account() == na->nc && na->HasVHost())
{
- source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVhostMask().c_str());
- Log(LOG_COMMAND, source, this) << "to enable their vhost of " << na->GetVhostMask();
- IRCD->SendVhost(u, na->GetVhostIdent(), na->GetVhostHost());
- u->vhost = na->GetVhostHost();
- if (IRCD->CanSetVIdent && !na->GetVhostIdent().empty())
- u->SetVIdent(na->GetVhostIdent());
+ source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVHostMask().c_str());
+ Log(LOG_COMMAND, source, this) << "to enable their vhost of " << na->GetVHostMask();
+ IRCD->SendVHost(u, na->GetVHostIdent(), na->GetVHostHost());
+ u->vhost = na->GetVHostHost();
+ if (IRCD->CanSetVIdent && !na->GetVHostIdent().empty())
+ u->SetVIdent(na->GetVHostIdent());
u->UpdateHost();
}
else