summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/capab.cpp
AgeCommit message (Collapse)Author
2019-01-24Add translation for casemapping between 2.0/3.0 (#1544)linuxdaemon
If the casemapping is set to ascii, advertise the m_ascii module to 2.0 to allow use of the m_ascii extras module for 2.0
2018-12-12Fix conversion issues by replacing ConvToInt with ConvToNum<T>.Peter Powell
The former was a thin wrapper around atol and brought with it all of the weird parsing logic of atol which is almost never what is actually wanted. It also almost never returned the numeric type which is actually wanted which can cause weird issues when casting.
2018-10-28Also synchronise the prefix rank between servers.Peter Powell
2018-10-27Fix a shadowing warning in the spanningtree module.Peter Powell
2018-10-27Improve CAPAB negotiation in the spanningtree module.Peter Powell
- Remove the CHANMODES, USERMODES, and PREFIX tokens in the 1205 protocol. These have entirely been superceded by the CHANMODES and USERMODES CAPAB commands. - Only compare the 1202 PREFIX tokens if the remote server did not send CAPAB CHANMODES. This replicates the existing behaviour used for the CHANMODES token. - Fix checking whether the remote server has an appropriate case mapping. If it is not sent we assume it is the same as the local server as always. This should prevent issues with people using services packages that do not send this token yet. - Fix checking if the user modes are mismatched and then promptly overwriting the error message with mismatched channel modes. - Fix servers not being able to tell whether a mode on the remote server is a prefixless prefix mode. Requires the 1205 protocol. - Fix servers that receive CAPAB CHANMODES or CAPAB USERMODES not checking the type of those modes. Requires the 1205 protocol.
2018-08-10Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.Peter Powell
Special tokenisation rules are not necessary here.
2018-07-30Replace most usages of "GECOS" with "real" or "real name".Peter Powell
2018-07-26Replace irc::stringjoiner with a generic stdalgo::string::join.Peter Powell
This can also be used with different types of collection containing values which are not a string.
2018-07-26Use CommandBase::Params instead of std::vector<std::string>.Peter Powell
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
2017-09-08Implement support for configurable casemapping & default to ASCII.Peter Powell
2016-09-02Bump version to 3.0 in comments and messagesAttila Molnar
2016-08-30Replace loop over alphabet with loop over mode list in several placesAttila Molnar
2016-01-06m_spanningtree Add compatibility hack that allows modules to drop the ↵Attila Molnar
VF_COMMON/VF_OPTCOMMON flags Include m_watch in the list
2015-02-22capab: m_kicknorejoin: Don't advertise upper bound to 2.0 serversDaniel Vassdal
2015-01-10Reduce std::string::substr() usageAttila Molnar
substr() returns a new string while erase() and assign() modify the existing one
2014-07-25Merge insp20Attila Molnar
2014-07-24Update example configuration files, fix typos and caseAttila Molnar
Mention m_regex_stdlib in the list of regex providers after m_filter
2014-06-22Change all occurrences of plain sort() to std::sort()Attila Molnar
2014-04-29m_spanningtree Advertise the availability of m_globops in CAPAB CAPABILITIESAttila Molnar
2014-04-08m_spanningtree Don't rely on "m_sha256.so" being loaded, use any ↵Attila Molnar
"hash/sha256" service provider
2014-04-08m_spanningtree Remove the (now) undocumented disablehmac config optionAttila Molnar
2014-03-08Make the maximum hostname length configurable in the config.Peter Powell
2014-02-18Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ↵Attila Molnar
ModeType
2014-02-06Convert irc::stringjoiner to be a method instead of a class.Peter Powell
Add separator parameter
2014-01-23Remove whitespace and minor style changesAttila Molnar
2013-11-21Fix a few issuesattilamolnar
- Rehash notices - Modes in CAPAB - GetTargetAndAction() not being static in m_callerid - Loading custom configuration files using --config. (@SaberUK) - ServerConfig::Read not using std::endl. (@SaberUK) - Out of date comments in opers.conf.example, issue #624
2013-09-11Move prefix mode specific fields and getters into PrefixModeattilamolnar
Add ModeHandler::IsPrefixMode()
2013-08-30Remove ModuleManager::GetAllModuleNames(), use GetModules() insteadattilamolnar
2013-06-12Simplify stringjoiner: take 1 parameter, join from begin() to end() and use ↵attilamolnar
space as the sep char
2013-04-13m_spanningtree Bump protocol version and remove unused CAPAB CAPABILITIES ↵attilamolnar
entries
2013-04-12m_spanningtree Remove unneeded #includesattilamolnar
2013-04-12m_spanningtree atoi() to ConvToInt() conversion, add const where possibleattilamolnar
Remove two redundant functions from Utils
2013-04-01Fix linker error when linking spanningtree caused by ↵Adam
56cae0f3a484cbcb20569b68917f1810a0c2f4a4
2013-04-01Remove legacy code, mostly related to 1.2 compatibilityattilamolnar
2012-10-12Remove superfluous std::string()sattilamolnar
2012-10-02m_spanningtree Use iterators in CAPAB handler and when generating reply to ↵attilamolnar
spanningtree related /stats, use std::find() in TreeServer::DelChild()
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2010-05-08Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)Daniel De Graaf
2010-02-23Replace #define IPV6 with <config defaultbind="ipv6">, and autodetect if not ↵danieldg
specified git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12550 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-13Clean up treesocket naming confusion by adding a link block reference during ↵danieldg
negotiation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12452 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-09Fix typodanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12417 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-09Sort CAPAB CHANMODES and USERMODESdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12416 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-09Add random number generation functions to InspIRCd class.danieldg
Default implementation uses libc random(), which can be better than rand(). If gnutls is loaded, gcrypt will be used to provide random numbers. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12404 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-09Fix error message on OPTCOMMON mismatchdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12403 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-06Fix left/right inversion in ListDifferencedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12389 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-16Fix use of commasepstream on now space-separated itemsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12272 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-16Make CHANMODES/USERMODES split by spacesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12267 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-15Route SVSSILENCE/SVSWATCH using OPT_UCAST, marking them OPTCOMMONdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12264 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-15Add CAPAB CHANMODES, CAPAB USERMODES to verify matching of modes by name, ↵danieldg
not just by letter git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12262 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-14Verify cloak keys match during CAPAB negotiationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12258 e03df62e-2008-0410-955e-edbf42e46eb7