diff options
author | Adam <Adam@anope.org> | 2014-03-01 21:40:47 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-03-01 21:40:47 -0500 |
commit | 5de4c1fc975446889c829e8dcb6f5854b1197ab4 (patch) | |
tree | 97227d0c923dd054eb068d804ea7651eca2f2598 /modules/protocol/plexus.cpp | |
parent | fd109048ddbda60f0731063e46e36daf96e9a9db (diff) |
Set +x on plexus when vhosts are activated, fix desync from /hs off
Diffstat (limited to 'modules/protocol/plexus.cpp')
-rw-r--r-- | modules/protocol/plexus.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index 653ec083b..c4d39e4a9 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -86,14 +86,12 @@ class PlexusProto : public IRCDProto if (!ident.empty()) UplinkSocket::Message(Me) << "ENCAP * CHGIDENT " << u->GetUID() << " " << ident; UplinkSocket::Message(Me) << "ENCAP * CHGHOST " << u->GetUID() << " " << host; + u->SetMode(Config->GetClient("HostServ"), "CLOAK"); } void SendVhostDel(User *u) anope_override { - if (u->HasMode("CLOAK")) - u->RemoveMode(Config->GetClient("HostServ"), "CLOAK"); - else - this->SendVhost(u, u->GetIdent(), u->chost); + u->RemoveMode(Config->GetClient("HostServ"), "CLOAK"); } void SendConnect() anope_override |