summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-15 20:05:13 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-15 20:05:13 +0000
commitf8ccaed31d68661d16eae1a412b337af09de111b (patch)
treeaae7092ec0d700a20cb61df26119fe70b33dffa4 /src/modules/m_spanningtree
parent33318dd6fbc2fa38ccf16ca90a95666f28d860b3 (diff)
Remove VF_COMMON from mode-provider modules (no longer needed due to better CAPAB checking)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12263 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/compat.cpp54
1 files changed, 42 insertions, 12 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp
index d74d6f848..fe262134f 100644
--- a/src/modules/m_spanningtree/compat.cpp
+++ b/src/modules/m_spanningtree/compat.cpp
@@ -16,20 +16,55 @@
#include "treesocket.h"
static const char* const forge_common_1201[] = {
+ "m_allowinvite.so",
+ "m_auditorium.so",
+ "m_banexception.so",
+ "m_blockcaps.so",
+ "m_blockcolor.so",
+ "m_botmode.so",
+ "m_censor.so",
+ "m_chanfilter.so",
+ "m_chanhistory.so",
+ "m_chanprotect.so",
"m_chghost.so",
"m_chgname.so",
+ "m_commonchans.so",
+ "m_deaf.so",
+ "m_delayjoin.so",
+ "m_delaymsg.so",
+ "m_exemptchanops.so",
+ "m_helpop.so",
+ "m_hidechans.so",
+ "m_hideoper.so",
+ "m_invisible.so",
+ "m_inviteexception.so",
+ "m_joinflood.so",
+ "m_kicknorejoin.so",
+ "m_messageflood.so",
+ "m_nickflood.so",
+ "m_noctcp.so",
+ "m_nokicks.so",
+ "m_nonicks.so",
+ "m_nonotice.so",
+ "m_ojoin.so",
+ "m_operprefix.so",
+ "m_permchannels.so",
+ "m_redirect.so",
+ "m_regex_glob.so",
+ "m_regex_pcre.so",
+ "m_regex_posix.so",
+ "m_regex_tre.so",
"m_remove.so",
"m_sajoin.so",
"m_sakick.so",
"m_sanick.so",
"m_sapart.so",
"m_saquit.so",
+ "m_servprotect.so",
"m_setident.so",
+ "m_sslmodes.so",
+ "m_stripcolor.so",
"m_swhois.so",
- "m_regex_glob.so",
- "m_regex_pcre.so",
- "m_regex_posix.so",
- "m_regex_tre.so"
};
static std::string wide_newline("\r\n");
@@ -39,14 +74,6 @@ void TreeSocket::CompatAddModules(std::vector<std::string>& modlist)
{
if (proto_version < 1202)
{
- for(std::vector<std::string>::iterator i = modlist.begin(); i != modlist.end(); ++i)
- {
- if (*i == "m_halfop.so")
- {
- modlist.erase(i);
- break;
- }
- }
// you MUST have chgident loaded in order to be able to translate FIDENT
modlist.push_back("m_chgident.so");
for(int i=0; i * sizeof(char*) < sizeof(forge_common_1201); i++)
@@ -56,7 +83,10 @@ void TreeSocket::CompatAddModules(std::vector<std::string>& modlist)
}
// module was merged
if (ServerInstance->Modules->Find("m_operchans.so"))
+ {
+ modlist.push_back("m_operchans.so");
modlist.push_back("m_operinvex.so");
+ }
}
}