diff options
author | Sadie Powell <sadie@witchery.services> | 2020-12-03 02:05:45 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-12-03 02:05:45 +0000 |
commit | fe67c13ddf8f546bed95a9904679b3f32c708cd9 (patch) | |
tree | 0cafcd4042f8e070a9146d098e99a3134060df26 | |
parent | d71c37e05911d87830987a09128a178c3e402bb4 (diff) |
Advertise the available extbans for services.
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 15ba77a34..4286300e5 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -199,6 +199,14 @@ void TreeSocket::SendCapabilities(int phase) .append(" PREFIX="+ ServerInstance->Modes->BuildPrefixes()); } + // HACK: Allow services to know what extbans exist. This will be + // replaced by CAPAB EXTBANS in the next protocol version. + std::map<std::string, std::string> tokens; + FOREACH_MOD(On005Numeric, (tokens)); + std::map<std::string, std::string>::const_iterator eiter = tokens.find("EXTBAN"); + if (eiter != tokens.end()) + extra.append(" EXTBANS=" + eiter->second); + this->WriteLine("CAPAB CAPABILITIES " /* Preprocessor does this one. */ ":NICKMAX="+ConvToStr(ServerInstance->Config->Limits.NickMax)+ " CHANMAX="+ConvToStr(ServerInstance->Config->Limits.ChanMax)+ |