From f8ccaed31d68661d16eae1a412b337af09de111b Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 15 Jan 2010 20:05:13 +0000 Subject: 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 --- src/modules/m_spanningtree/compat.cpp | 54 +++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 12 deletions(-) (limited to 'src/modules/m_spanningtree') 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& modlist) { if (proto_version < 1202) { - for(std::vector::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& modlist) } // module was merged if (ServerInstance->Modules->Find("m_operchans.so")) + { + modlist.push_back("m_operchans.so"); modlist.push_back("m_operinvex.so"); + } } } -- cgit v1.2.3