1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 08:03:14 +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
+8 -8
View File
@@ -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