Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)

This commit is contained in:
Daniel De Graaf 2010-05-08 13:57:27 -05:00
parent df347edbdb
commit cb4c516ace

View File

@ -131,6 +131,8 @@ void TreeSocket::SendCapabilities(int phase)
SetOurChallenge(ServerInstance->GenRandomStr(20));
extra = " CHALLENGE=" + this->GetOurChallenge();
}
if (proto_version < 1202)
extra += ServerInstance->Modes->FindMode('h', MODETYPE_CHANNEL) ? " HALFOP=1" : " HALFOP=0";
this->WriteLine("CAPAB CAPABILITIES " /* Preprocessor does this one. */
":NICKMAX="+ConvToStr(ServerInstance->Config->Limits.NickMax)+