]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)
authorDaniel De Graaf <danieldg@inspircd.org>
Sat, 8 May 2010 18:57:27 +0000 (13:57 -0500)
committerDaniel De Graaf <danieldg@inspircd.org>
Sat, 8 May 2010 18:57:27 +0000 (13:57 -0500)
src/modules/m_spanningtree/capab.cpp

index cb3611d336e1341d2383c702bcd8eb637209b18b..dbcc2d3241f3dfcd808fe42113ea4de997d449ed 100644 (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)+