summaryrefslogtreecommitdiff
path: root/modules/protocol/plexus.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-03-01 21:40:47 -0500
committerAdam <Adam@anope.org>2014-03-01 21:40:47 -0500
commit5de4c1fc975446889c829e8dcb6f5854b1197ab4 (patch)
tree97227d0c923dd054eb068d804ea7651eca2f2598 /modules/protocol/plexus.cpp
parentfd109048ddbda60f0731063e46e36daf96e9a9db (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.cpp6
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