summaryrefslogtreecommitdiff
path: root/include/mode.h
AgeCommit message (Collapse)Author
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
2014-02-22Add ModeParser::GetModes(), returns all user/chanmodesAttila Molnar
2014-02-21Assign an id to user modes, parameter chanmodes and simple chanmodesAttila Molnar
2014-02-20Add a ModeParser::FindMode() overload that takes a mode name and a mode typeAttila Molnar
2014-02-20Create a name -> ModeHandler* mapAttila Molnar
2014-02-18Replace ModeMasks with a two-dimensional arrayAttila Molnar
2014-02-18Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ↵Attila Molnar
ModeType
2014-02-15Add ParamModeBase and ParamMode, change all parameter modes to inherit from ↵Attila Molnar
ParamMode - 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
2014-02-15Add ModeHandler::IsParameterMode() and MC_PARAMAttila Molnar
2014-01-31Remove some dead codeAttila Molnar
2013-11-09Fix PrefixMode not being exported which caused runtime link errors.Peter Powell
2013-09-12Keep lists of mode handlers by typeattilamolnar
2013-09-12Add ModeHandler::IsListModeBase() and MC_LISTattilamolnar
2013-09-11Move prefix mode specific fields and getters into PrefixModeattilamolnar
Add ModeHandler::IsPrefixMode()
2013-09-11Create a base class for prefix modesattilamolnar
Move Channel::SetPrefix() into Membership
2013-09-11Add a type id field to ModeHandlerattilamolnar
2013-06-13Introduce ModeProcessFlags, can be passed to ModeParser::Process() to ↵attilamolnar
indicate local only mode changes and mode merges 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.)
2013-06-06Store prefix rank in a ModeHandler field, change ↵attilamolnar
ModeHandler::GetPrefixRank() to be non-virtual
2013-06-02Move a few trivial functions into headersattilamolnar
2013-06-01Watch mode names with ModeWatchers instead of mode lettersattilamolnar
2013-06-01Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()attilamolnar
2013-05-27Simplify user mode removal via ModeHandler::RemoveMode()attilamolnar
The function does not need to be virtual because the core can remove any user mode using the default logic The optional modestack parameter was always NULL, so remove it
2013-05-27Deduplicate RemoveMode() implementationsattilamolnar
The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory
2013-05-24Cache mode list that is sent in the 004 numericattilamolnar
Deduplicate UserModeList(), ChannelModeList() and ParaModeList() code
2013-05-24Remove dead ModeParser codeattilamolnar
2013-04-12Tidy up source files:Peter Powell
- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
2013-04-08Add builtin modes using AddService()attilamolnar
2012-07-05Fix Doxygen syntax errors.Peter Powell
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-