aboutsummaryrefslogtreecommitdiff
path: root/include/mode.h
Commit message (Expand)AuthorAgeFilesLines
* Fix RPL_SERVERVERSION treating the modes as a single parameter.Gravatar Peter Powell2017-10-041-4/+4
* Add ModeParser::IsModeChar to standardise mode validation.Gravatar Peter Powell2017-09-181-0/+2
* Fix a bunch of Doxygen warnings.Gravatar Peter Powell2017-08-261-1/+1
* Add CXX11_OVERRIDE to overridden members that lack it.•••This fixes a ton of warnings when building on compilers that default to C++11 or newer. Gravatar Peter Powell2017-07-121-1/+1
* Make ModeHandler::GetUserParameter() const, accept const UserGravatar Attila Molnar2016-12-301-1/+1
* Add const versions of ModeHandler::IsPrefixMode(), IsListModeBase() and IsPar...Gravatar Attila Molnar2016-08-301-0/+33
* Mark ModeHandler::GetModeChar() and ModeWatcher::GetModeType() as constGravatar Attila Molnar2016-08-291-2/+2
* Convert ModeHandler::GetNumParams() to NeedsParam() that returns a boolGravatar Attila Molnar2016-08-291-5/+4
* Fix some whitespace issuesGravatar Attila Molnar2015-12-281-4/+4
* Implement ModeHandler::RegisterService()Gravatar Attila Molnar2015-11-231-0/+5
* Change type of some associative containers to their flat versions, including ...Gravatar Attila Molnar2014-12-151-1/+1
* Add typedef ModeParser::ModeWatcherMap, remove ModeWatchIterGravatar Attila Molnar2014-12-151-3/+5
* Migrate code from ModeParser into cmd_mode (core_user)•••- Process() that takes a std::vector<std::string> - DisplayCurrentModes() - DisplayListModes() Gravatar Attila Molnar2014-09-041-21/+0
* Split ModeParser::DisplayListMode() into two parts•••ShowListModeList() sends the list of one listmode to a user, DisplayListMode() calls it for each mode letter Gravatar Attila Molnar2014-09-041-0/+7
* Remove unused parameter passed to ModeParser::DisplayCurrentModes()Gravatar Attila Molnar2014-09-041-1/+1
* Let callers customize the begin/end positions for ModeParser::ModeParamsToCha...•••This helps spanningtree when it deals with a vector of parameters where the modes begin at different positions Gravatar Attila Molnar2014-09-041-1/+5
* Use Modes::ChangeList in ModeHandler::RemoveMode()Gravatar Attila Molnar2014-09-031-4/+4
* Add a ModeParser::Process() overload that can process an entire Modes::Change...•••This is a wrapper that calls ProcessSingle() repeatedly until the entire changelist is processed Gravatar Attila Molnar2014-09-031-0/+11
* Make it possible to resume processing a partially processed Modes::ChangeList•••Return number of processed mode changes from ModeParser::ProcessSingle() and add a begin index parameter Gravatar Attila Molnar2014-09-031-2/+5
* Split out ModeParser::ModeParamsToChangeList()Gravatar Attila Molnar2014-09-031-0/+13
* Split out ModeParser::ProcessSingle() from Process()•••This applies up to one MODE line's worth of mode changes from a Modes::ChangeList Gravatar Attila Molnar2014-09-031-1/+13
* Add mode process flag MODE_CHECKACCESSGravatar Attila Molnar2014-09-031-1/+9
* Remove ModeHandler::m_paramtype and GetTranslateType()Gravatar Attila Molnar2014-09-031-9/+0
* Remove ModeParser::LastParseTranslate and GetLastParseTranslate()Gravatar Attila Molnar2014-09-031-2/+0
* Remove ModeParser::LastParseParams and GetLastParseParams()Gravatar Attila Molnar2014-09-031-2/+0
* m_spanningtree Send MODE/FMODE from the OnMode hook•••If the MODE_LOCALONLY flag is set the mode change is not propagated Gravatar Attila Molnar2014-09-031-2/+2
* Populate a Modes::ChangeList object in ModeParser::Process()Gravatar Attila Molnar2014-09-031-0/+4
* Add Modes::Change and Modes::ChangeListGravatar Attila Molnar2014-09-031-0/+1
* Change mode_sequence to be a const ref in ModeParser::Process()•••Also change the signature of DisplayListModes() to accept a const ref Gravatar Attila Molnar2014-09-021-1/+1
* Pass prefix rank and prefix char to PrefixMode constructorGravatar Attila Molnar2014-08-061-1/+3
* Change allocation of InspIRCd::Modes to be physically part of the object cont...Gravatar Attila Molnar2014-06-241-1/+1
* Throw an exception if ModeParser::AddMode() failsGravatar Attila Molnar2014-02-231-2/+4
* Add ModeParser::GetModes(), returns all user/chanmodesGravatar Attila Molnar2014-02-221-4/+10
* Assign an id to user modes, parameter chanmodes and simple chanmodesGravatar Attila Molnar2014-02-211-0/+27
* Add a ModeParser::FindMode() overload that takes a mode name and a mode typeGravatar Attila Molnar2014-02-201-0/+7
* Create a name -> ModeHandler* mapGravatar Attila Molnar2014-02-201-0/+8
* Replace ModeMasks with a two-dimensional arrayGravatar Attila Molnar2014-02-181-12/+5
* Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to Mo...Gravatar Attila Molnar2014-02-181-1/+1
* Add ParamModeBase and ParamMode, change all parameter modes to inherit from P...•••- Type of the extension used to store data is a template parameter - The extension is automatically unset when the mode is unset - Handlers inheriting from ParamMode have to provide OnSet() and SerializeParam(); may optionally provide OnUnset() - Transparently handle the case when OnSet() modifies the mode parameter - Remove Channel::custom_mode_params map; ask the mode handlers to serialize their parameters instead Gravatar Attila Molnar2014-02-151-10/+0
* Add ModeHandler::IsParameterMode() and MC_PARAMGravatar Attila Molnar2014-02-151-0/+13
* Remove some dead codeGravatar Attila Molnar2014-01-311-2/+0
* Fix PrefixMode not being exported which caused runtime link errors.Gravatar Peter Powell2013-11-091-1/+1
* Keep lists of mode handlers by typeGravatar attilamolnar2013-09-121-0/+26
* Add ModeHandler::IsListModeBase() and MC_LISTGravatar attilamolnar2013-09-121-1/+15
* Move prefix mode specific fields and getters into PrefixMode•••Add ModeHandler::IsPrefixMode() Gravatar attilamolnar2013-09-111-22/+45
* Create a base class for prefix modes•••Move Channel::SetPrefix() into Membership Gravatar attilamolnar2013-09-111-7/+49
* Add a type id field to ModeHandlerGravatar attilamolnar2013-09-111-1/+12
* Introduce ModeProcessFlags, can be passed to ModeParser::Process() to indicat...•••Change ProtocolInterface::SendMode() to take source and destination parameters, and call it from the mode parser whenever the mode change is global This deprecates the ambiguous InspIRCd::SendMode() and InspIRCd::SendGlobalMode() interface (the latter sent mode changes originating from local users twice, etc.) Gravatar attilamolnar2013-06-131-5/+27
* Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank()...Gravatar attilamolnar2013-06-061-1/+6
* Move a few trivial functions into headersGravatar attilamolnar2013-06-021-2/+2