summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-03-01 17:43:54 -0500
committerAdam <Adam@anope.org>2017-03-01 17:44:05 -0500
commit1a963908260519e4d3396f5655a9ffbefa2c27b2 (patch)
tree903350a248348d78b1fc3b9bcd77b2584b2ce9f4
parent60339edf401561d2076b257141d54429be885b9b (diff)
unreal4: set +xt on chghost as unreal does
-rw-r--r--modules/protocol/unreal4.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp
index 1fe7a1d28..95618a1c7 100644
--- a/modules/protocol/unreal4.cpp
+++ b/modules/protocol/unreal4.cpp
@@ -204,6 +204,10 @@ class UnrealIRCdProto : public IRCDProto
UplinkSocket::Message(Me) << "CHGIDENT " << u->GetUID() << " " << vIdent;
if (!vhost.empty())
UplinkSocket::Message(Me) << "CHGHOST " << u->GetUID() << " " << vhost;
+ // Internally unreal sets +xt on chghost
+ BotInfo *bi = Config->GetClient("HostServ");
+ u->SetMode(bi, "CLOAK");
+ u->SetMode(bi, "VHOST");
}
void SendConnect() anope_override