aboutsummaryrefslogtreecommitdiff
path: root/src/listmode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-1/+4
|
* Add a constant for the maximum length of a mode parameter.Gravatar Peter Powell2019-07-231-3/+0
|
* Improve handling of list mode limits.Gravatar Peter Powell2019-05-091-8/+16
| | | | | | - 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 *.
* Improve the name of the list mode extensible.Gravatar Peter Powell2019-02-041-1/+1
|
* Add the <maxlist> tag and switch ListModeBase to always use it.Gravatar Peter Powell2018-12-191-11/+15
| | | | | | | | | | | | | | 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.
* Make more modules rehash atomically (#1535)Gravatar linuxdaemon2018-12-191-6/+12
| | | | | Have each module validate the values it loads before setting them, so any errors don't result in partial application of the configs
* Use consistent numerics when a mode already exists or doesn't exist.Gravatar Peter Powell2018-12-091-2/+5
|
* Use ERR_BANLISTFULL in the chanfilter and exemptchanops modules.Gravatar Peter Powell2018-12-091-1/+1
|
* Merge tag 'v2.0.27' into master.Gravatar Peter Powell2018-11-071-1/+1
|
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-1/+1
|
* Remove the default value in ConfigTag::get{Duration,Float,Int}.Gravatar Peter Powell2018-04-161-1/+1
|
* Fix an invalid mode parameters numeric upon attempting to view a list modeGravatar B00mX0r2018-04-081-0/+4
|
* Replace the deprecated MAXBANS token with MAXLIST.Gravatar Peter Powell2017-07-241-0/+11
|
* Add DEFAULT_LIST_SIZE for the default list mode size.Gravatar Peter Powell2017-07-241-2/+2
|
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-4/+4
| | | | parameters
* Specify which Extensible subclass an ExtensionItem is valid forGravatar Attila Molnar2015-01-181-1/+2
|
* Drop setter is empty check when displaying listmodesGravatar Attila Molnar2014-12-161-1/+1
| | | | The setter cannot be empty unless the nick of a client is empty which is not possible
* Display listmodes in the order in which they are in the container instead of ↵Gravatar Attila Molnar2014-12-161-1/+1
| | | | reverse iterating
* Change listmode storage type to vectorGravatar Attila Molnar2014-12-161-1/+1
|
* Merge insp20Gravatar Attila Molnar2014-10-271-2/+3
|
* Use Modes::ChangeList in ModeHandler::RemoveMode()Gravatar Attila Molnar2014-09-031-2/+2
|
* Add InspIRCd::GetChans(), remove ChannelCount()Gravatar Attila Molnar2014-03-141-1/+2
|
* Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-4/+4
| | | | automatically
* Remove redundant parameter.clear()s from mode handlersGravatar attilamolnar2013-09-151-2/+0
|
* Send ListModeBase modes implicitly on channel syncGravatar attilamolnar2013-09-121-22/+0
| | | | Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
* Add ModeHandler::IsListModeBase() and MC_LISTGravatar attilamolnar2013-09-121-1/+1
|
* Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-5/+0
|
* Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-1/+0
| | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
|
* Simplify user mode removal via ModeHandler::RemoveMode()Gravatar attilamolnar2013-05-271-5/+0
| | | | | 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
* Deduplicate RemoveMode() implementationsGravatar attilamolnar2013-05-271-19/+2
| | | | | The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory
* ListModeBase: Cache max items per channelGravatar attilamolnar2013-04-081-21/+49
|
* ListModeBase: Minor changes to original u_listmode codeGravatar attilamolnar2013-04-081-28/+13
| | | | | | | | - 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
* Migrate u_listmode.h into the core, change +b to use itGravatar attilamolnar2013-04-081-0/+262