1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 15:23:12 +02:00

protocol/inspircd12: set +x on /hs off

This commit is contained in:
Adam
2017-02-06 13:15:01 -05:00
parent 9b6c209c80
commit dde444ed0e
+7 -6
View File
@@ -151,13 +151,14 @@ class InspIRCd12Proto : public IRCDProto
void SendVhostDel(User *u) anope_override
{
if (u->HasMode("CLOAK"))
this->SendChgHostInternal(u->nick, u->chost);
else
this->SendChgHostInternal(u->nick, u->host);
UserMode *um = ModeManager::FindUserModeByName("CLOAK");
if (Servers::Capab.count("CHGIDENT") && u->GetIdent() != u->GetVIdent())
this->SendChgIdentInternal(u->nick, u->GetIdent());
if (um && !u->HasMode(um->name))
// Just set +x if we can
u->SetMode(NULL, um);
else
// Try to restore cloaked host
this->SendChgHostInternal(u->nick, u->chost);
}
void SendAkill(User *u, XLine *x) anope_override