From cb4c516ace8fef75b8a54a141c3644af9697ac0a Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 8 May 2010 13:57:27 -0500 Subject: Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this) --- src/modules/m_spanningtree/capab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index cb3611d33..dbcc2d324 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -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)+ -- cgit v1.2.3