summaryrefslogtreecommitdiff
path: root/modules/protocol/plexus.cpp
diff options
context:
space:
mode:
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