diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-05-08 13:57:27 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-05-08 13:57:27 -0500 |
commit | cb4c516ace8fef75b8a54a141c3644af9697ac0a (patch) | |
tree | d78ecc85e6776d4082816a662704e32824eacb09 /src/modules/m_spanningtree | |
parent | df347edbdbb6d1d0f81795214674da8a4007850a (diff) |
Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)+ |