diff options
| author | 2010-05-08 13:57:27 -0500 | |
|---|---|---|
| committer | 2010-05-08 13:57:27 -0500 | |
| commit | cb4c516ace8fef75b8a54a141c3644af9697ac0a (patch) | |
| tree | d78ecc85e6776d4082816a662704e32824eacb09 /src/modules/m_spanningtree/capab.cpp | |
| parent | Use unit-cc for all compile and and link tasks (diff) | |
Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
| -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)+ |
