mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)
This commit is contained in:
parent
df347edbdb
commit
cb4c516ace
@ -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)+
|
||||
|
Loading…
x
Reference in New Issue
Block a user