mirror of
https://github.com/anope/anope.git
synced 2026-07-10 12:03:12 +02:00
Fall back to account vhost in hs on/off
This commit is contained in:
@@ -27,6 +27,8 @@ class CommandHSOn : public Command
|
||||
|
||||
User *u = source.GetUser();
|
||||
const NickAlias *na = NickAlias::Find(u->nick);
|
||||
if (!na || na->nc != u->Account() || !na->HasVhost())
|
||||
na = NickAlias::Find(u->Account()->display);
|
||||
if (na && u->Account() == na->nc && na->HasVhost())
|
||||
{
|
||||
if (!na->GetVhostIdent().empty())
|
||||
|
||||
Reference in New Issue
Block a user