diff options
| author | 2020-12-04 21:12:12 +0000 | |
|---|---|---|
| committer | 2020-12-04 21:13:42 +0000 | |
| commit | 220806f50d3c152418deb2e91ead6d5812d37626 (patch) | |
| tree | 7d3fc7d708f73800d19a82a8bbd9cba87fcb840b /src/modules/m_spanningtree/capab.cpp | |
| parent | Add support for the 1206 spanningtree protocol. (diff) | |
Only send CAPAB EXTBANS if using the 1206 protocol.
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index ef0e16d2d..4447fa307 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -147,10 +147,6 @@ void TreeSocket::SendCapabilities(int phase) WriteLine("CAPAB CHANMODES :" + BuildModeList(MODETYPE_CHANNEL)); WriteLine("CAPAB USERMODES :" + BuildModeList(MODETYPE_USER)); - std::string extbans; - if (BuildExtBanList(extbans)) - WriteLine("CAPAB EXTBANS :" + extbans); - std::string extra; /* Do we have sha256 available? If so, we send a challenge */ if (ServerInstance->Modules.FindService(SERVICE_DATA, "hash/sha256")) @@ -173,6 +169,12 @@ void TreeSocket::SendCapabilities(int phase) extra.append(" EXTBANS=" + extbanchars); } } + else + { + std::string extbans; + if (BuildExtBanList(extbans)) + WriteLine("CAPAB EXTBANS :" + extbans); + } this->WriteLine("CAPAB CAPABILITIES " /* Preprocessor does this one. */ ":NICKMAX="+ConvToStr(ServerInstance->Config->Limits.MaxNick)+ |
