diff options
author | Adam <Adam@anope.org> | 2015-12-13 19:14:44 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-12-13 19:14:44 -0500 |
commit | 16d08e57df9cc5909b3477e51fac7baa7f312aff (patch) | |
tree | f8e2777e4c367aea257de2243696b3cb030f82e0 /modules/commands/hs_on.cpp | |
parent | 252a65af7e63e7da7d4984f45aef49edbfbac2bd (diff) |
Fall back to account vhost in hs on/off
Diffstat (limited to 'modules/commands/hs_on.cpp')
-rw-r--r-- | modules/commands/hs_on.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/hs_on.cpp b/modules/commands/hs_on.cpp index d59206e27..26fa6266f 100644 --- a/modules/commands/hs_on.cpp +++ b/modules/commands/hs_on.cpp @@ -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()) |