diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-29 16:10:22 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-29 16:10:22 +0200 |
commit | f65b215865e98282623eb8ab4e4ae400e558144a (patch) | |
tree | 9f9b4b73c303f831f2aab4eeed4e115741186349 /src | |
parent | 17170c276e5e57091e256b57719c08c25256d060 (diff) |
m_spanningtree Advertise the availability of m_globops in CAPAB CAPABILITIES
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 62afe5974..d4023bd6d 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -157,6 +157,12 @@ void TreeSocket::SendCapabilities(int phase) " PREFIX="+ServerInstance->Modes->BuildPrefixes()+ " CHANMODES="+ServerInstance->Modes->GiveModeList(MASK_CHANNEL)+ " USERMODES="+ServerInstance->Modes->GiveModeList(MASK_USER)+ + // XXX: Advertise the presence or absence of m_globops in CAPAB CAPABILITIES. + // Services want to know about it, and since m_globops was not marked as VF_(OPT)COMMON + // in 2.0, we advertise it here to not break linking to previous versions. + // Protocol version 1201 (1.2) does not have this issue because we advertise m_globops + // to 1202 protocol servers irrespectively of its module flags. + (ServerInstance->Modules->Find("m_globops.so") != NULL ? " GLOBOPS=1" : " GLOBOPS=0")+ " SVSPART=1"); this->WriteLine("CAPAB END"); |