diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-25 12:05:40 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-25 12:05:40 +0200 |
commit | f62654a6859998f9d63eb22702c572d5ebcff15c (patch) | |
tree | fd38985a6a7f94658c157da9a6f470d718f34eed /src/modules/m_spanningtree/capab.cpp | |
parent | 9c285d9546ea5b99a5ae1ac5186206308ca2d38f (diff) | |
parent | 2cc3d7ecb8cd77341215db5bb94cebf917a5c5ef (diff) |
Merge insp20
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index e242bcd4a..f27fe8889 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -153,7 +153,13 @@ void TreeSocket::SendCapabilities(int phase) extra+ " PREFIX="+ServerInstance->Modes->BuildPrefixes()+ " CHANMODES="+ServerInstance->Modes->GiveModeList(MODETYPE_CHANNEL)+ - " USERMODES="+ServerInstance->Modes->GiveModeList(MODETYPE_USER) + " USERMODES="+ServerInstance->Modes->GiveModeList(MODETYPE_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 1201 protocol servers irrespectively of its module flags. + (ServerInstance->Modules->Find("m_globops.so") != NULL ? " GLOBOPS=1" : " GLOBOPS=0") ); this->WriteLine("CAPAB END"); |