1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 12:23:13 +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
+3 -3
View File
@@ -26,15 +26,15 @@ 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 || !na->HasVhost())
if (!na || !na->HasVHost())
source.Reply(HOST_NOT_ASSIGNED);
else
{
u->vhost.clear();
IRCD->SendVhostDel(u);
IRCD->SendVHostDel(u);
u->UpdateHost();
Log(LOG_COMMAND, source, this) << "to disable their vhost";
source.Reply(_("Your vhost was removed and the normal cloaking restored."));