summaryrefslogtreecommitdiff
path: root/src/listmode.cpp
AgeCommit message (Collapse)Author
2019-07-23Add a constant for the maximum length of a mode parameter.Peter Powell
2019-05-09Improve handling of list mode limits.Peter Powell
- Fix not being able to set a zero limit. - Fix MAXLIST not reflecting the true lower limit. - Fix not treating an empty <maxlist:limit> as equivalent to *.
2019-02-04Improve the name of the list mode extensible.Peter Powell
2018-12-19Add the <maxlist> tag and switch ListModeBase to always use it.Peter Powell
The old method of doing this was: 1. Extremely inconsistently used. Some list modes used <banlist> and some used their own config tag. 2. Not documented in the slightest. There was a small reference to <maxbans> for the ban mode but nothing else. 3. In some cases conflicting with other config tags. The chanfilter module defined a <chanfilter> tag for general config whilst also using it for the max list settings. The new <maxlist> tag avoids these issues entirely.
2018-12-19Make more modules rehash atomically (#1535)linuxdaemon
Have each module validate the values it loads before setting them, so any errors don't result in partial application of the configs
2018-12-09Use consistent numerics when a mode already exists or doesn't exist.Peter Powell
2018-12-09Use ERR_BANLISTFULL in the chanfilter and exemptchanops modules.Peter Powell
2018-11-07Merge tag 'v2.0.27' into master.Peter Powell
2018-04-16Add ConfigTag::getUInt for reading unsigned config values.Peter Powell
2018-04-16Remove the default value in ConfigTag::get{Duration,Float,Int}.Peter Powell
2018-04-08Fix an invalid mode parameters numeric upon attempting to view a list modeB00mX0r
2017-07-24Replace the deprecated MAXBANS token with MAXLIST.Peter Powell
2017-07-24Add DEFAULT_LIST_SIZE for the default list mode size.Peter Powell
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2015-01-18Specify which Extensible subclass an ExtensionItem is valid forAttila Molnar
2014-12-16Drop setter is empty check when displaying listmodesAttila Molnar
The setter cannot be empty unless the nick of a client is empty which is not possible
2014-12-16Display listmodes in the order in which they are in the container instead of ↵Attila Molnar
reverse iterating
2014-12-16Change listmode storage type to vectorAttila Molnar
2014-10-27Merge insp20Attila Molnar
2014-09-03Use Modes::ChangeList in ModeHandler::RemoveMode()Attila Molnar
2014-03-14Add InspIRCd::GetChans(), remove ChannelCount()Attila Molnar
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-09-15Remove redundant parameter.clear()s from mode handlersattilamolnar
2013-09-12Send ListModeBase modes implicitly on channel syncattilamolnar
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
2013-09-12Add ModeHandler::IsListModeBase() and MC_LISTattilamolnar
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-30Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵attilamolnar
and on rehash This eliminates the need for calling OnRehash() in init()
2013-08-04Automatically attach modules to eventsattilamolnar
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-04-08ListModeBase: Cache max items per channelattilamolnar
2013-04-08ListModeBase: Minor changes to original u_listmode codeattilamolnar
- Add constructors to ListItem, ListLimit - Rename fields in ListItem - Store time as time_t instead of string - Store limits in a vector instead of a list - Don't deallocate the list when it becomes empty
2013-04-08Migrate u_listmode.h into the core, change +b to use itattilamolnar