summaryrefslogtreecommitdiff
path: root/include/mode.h
AgeCommit message (Collapse)Author
2021-04-27Fix a bunch of weird indentation and spacing issues.Sadie Powell
2021-03-31Fix various documentation comments.Sadie Powell
2021-03-05Update copyright headers.InspIRCd Robot
2021-02-27Fix not sending ERR_INVALIDMODEPARAM when a parameter is malformed.Sadie Powell
Closes #1850.
2020-04-21Fixes by misspell-fixerInspIRCd Robot
2020-01-11Update copyright headers.InspIRCd Robot
2020-01-05Add an oper only parameter to Simple{Channel,User}ModeHandler.Sadie Powell
2019-07-26Fix various cases of broken indentation.Peter Powell
2019-07-23Add a constant for the maximum length of a mode parameter.Peter Powell
2019-06-12Show the mode syntax in ERR_INVALIDMODEPARAM.Peter Powell
2018-08-22Send the 001-004 numerics and MOTD/LUSERS from core_info.Peter Powell
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13Implement IRCv3 message tag support.Peter Powell
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13Add an accessor for the last mode change list to ModeParser.Peter Powell
GetLastParse will be going away soon.
2017-12-10Extract RFC modes from the core to core_channel and core_user.Peter Powell
2017-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2017-11-06Enable using m_customprefix to alter core prefix modes.Peter Powell
This replaces the devoice module which has now been removed. If you want users to be able to devoice themselves then you can load the customprefix module add the following config tag: <customprefix name="voice" depriv="yes"> If you wish to keep identical behaviour rather than allowing users to use "MODE #YourChannel -v TheirNick" then you can load the alias module and add the following config tag: <alias text="DEVOICE" format="#*" replace="MODE $2 -v $nick">
2017-11-06Move depriv from m_customprefix into PrefixMode.Peter Powell
2017-11-06Add support for setting the unset rank in ModeHandler.Peter Powell
2017-10-04Fix RPL_SERVERVERSION treating the modes as a single parameter.Peter Powell
2017-09-18Add ModeParser::IsModeChar to standardise mode validation.Peter Powell
2017-08-26Fix a bunch of Doxygen warnings.Peter Powell
2017-07-12Add CXX11_OVERRIDE to overridden members that lack it.Peter Powell
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
2016-12-30Make ModeHandler::GetUserParameter() const, accept const UserAttila Molnar
2016-08-30Add const versions of ModeHandler::IsPrefixMode(), IsListModeBase() and ↵Attila Molnar
IsParameterMode()
2016-08-29Mark ModeHandler::GetModeChar() and ModeWatcher::GetModeType() as constAttila Molnar
2016-08-29Convert ModeHandler::GetNumParams() to NeedsParam() that returns a boolAttila Molnar
2015-12-28Fix some whitespace issuesAttila Molnar
2015-11-23Implement ModeHandler::RegisterService()Attila Molnar
2014-12-15Change type of some associative containers to their flat versions, including ↵Attila Molnar
Extensible storage
2014-12-15Add typedef ModeParser::ModeWatcherMap, remove ModeWatchIterAttila Molnar
2014-09-04Migrate code from ModeParser into cmd_mode (core_user)Attila Molnar
- Process() that takes a std::vector<std::string> - DisplayCurrentModes() - DisplayListModes()
2014-09-04Split ModeParser::DisplayListMode() into two partsAttila Molnar
ShowListModeList() sends the list of one listmode to a user, DisplayListMode() calls it for each mode letter
2014-09-04Remove unused parameter passed to ModeParser::DisplayCurrentModes()Attila Molnar
2014-09-04Let callers customize the begin/end positions for ↵Attila Molnar
ModeParser::ModeParamsToChangeList() This helps spanningtree when it deals with a vector of parameters where the modes begin at different positions
2014-09-03Use Modes::ChangeList in ModeHandler::RemoveMode()Attila Molnar
2014-09-03Add a ModeParser::Process() overload that can process an entire ↵Attila Molnar
Modes::ChangeList This is a wrapper that calls ProcessSingle() repeatedly until the entire changelist is processed
2014-09-03Make it possible to resume processing a partially processed Modes::ChangeListAttila Molnar
Return number of processed mode changes from ModeParser::ProcessSingle() and add a begin index parameter
2014-09-03Split out ModeParser::ModeParamsToChangeList()Attila Molnar
2014-09-03Split out ModeParser::ProcessSingle() from Process()Attila Molnar
This applies up to one MODE line's worth of mode changes from a Modes::ChangeList
2014-09-03Add mode process flag MODE_CHECKACCESSAttila Molnar
2014-09-03Remove ModeHandler::m_paramtype and GetTranslateType()Attila Molnar
2014-09-03Remove ModeParser::LastParseTranslate and GetLastParseTranslate()Attila Molnar
2014-09-03Remove ModeParser::LastParseParams and GetLastParseParams()Attila Molnar
2014-09-03m_spanningtree Send MODE/FMODE from the OnMode hookAttila Molnar
If the MODE_LOCALONLY flag is set the mode change is not propagated
2014-09-03Populate a Modes::ChangeList object in ModeParser::Process()Attila Molnar
2014-09-03Add Modes::Change and Modes::ChangeListAttila Molnar
2014-09-02Change mode_sequence to be a const ref in ModeParser::Process()Attila Molnar
Also change the signature of DisplayListModes() to accept a const ref
2014-08-06Pass prefix rank and prefix char to PrefixMode constructorAttila Molnar
2014-06-24Change allocation of InspIRCd::Modes to be physically part of the object ↵Attila Molnar
containing it using fakederef
2014-02-23Throw an exception if ModeParser::AddMode() failsAttila Molnar