aboutsummaryrefslogtreecommitdiff
path: root/src/mode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pack the mode set more efficiently and add support for numeric modes.Gravatar Sadie Powell2022-03-271-4/+22
|
* Fix unsigned/const keyword ordering, remove unnecessary consts.Gravatar Sadie Powell2022-03-271-2/+2
|
* Refactor CoreException and ModuleException.Gravatar Sadie Powell2022-01-071-9/+17
|
* Remove a bunch of unnecessary whitespace.Gravatar Sadie Powell2021-08-171-1/+0
|
* Move ModeParser::BuildPrefixes to core_mode.Gravatar Sadie Powell2021-07-031-30/+0
| | | | | Now we've dropped support for the 1202 protocol we don't need this in the core.
* Move ModeParser::GiveModeList to core_mode.Gravatar Sadie Powell2021-07-031-48/+0
| | | | | Now we've dropped support for the 1202 protocol we don't need this in the core.
* Rename Simple{Channel,User}ModeHandler to match other mode handlers.Gravatar Sadie Powell2021-06-011-2/+2
|
* Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-2/+2
|
* Merge branch 'insp3' into master.Gravatar Sadie Powell2021-05-111-2/+2
|\
| * Fix a bunch of weird indentation and spacing issues.Gravatar Sadie Powell2021-04-271-2/+2
| |
* | Add ChannelManager::IsPrefix.Gravatar Sadie Powell2021-05-081-1/+1
| |
* | Move channel logic from InspIRCd to the new ChannelManager class.Gravatar Sadie Powell2021-05-081-2/+2
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-04-271-1/+3
|\|
| * Improve the message sent when a mode does not exist.Gravatar Sadie Powell2021-04-191-1/+3
| |
* | Migrate collections from insert to emplace.Gravatar Sadie Powell2021-04-181-2/+2
| |
* | Switch simple iterator loops to use range-based for loops.Gravatar Sadie Powell2021-04-071-19/+9
| |
* | Constify their_param in ResolveModeConflict.Gravatar Sadie Powell2021-04-061-3/+3
| | | | | | | | There's no reason for this to be mutable.
* | Convert various mode methods to take Mode::Change.Gravatar Sadie Powell2021-03-301-46/+43
| | | | | | | | | | | | | | | | - AccessCheck - AfterMode - BeforeMode - OnModeChange - OnRawMode
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+1
| |
* | Refactor classbase/CullResult into Cullable/Cullable::Result.Gravatar Sadie Powell2021-03-021-2/+2
| |
* | Move iterator_range to the utility directory and renamespace.Gravatar Sadie Powell2021-03-021-3/+3
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-02-281-0/+11
|\|
| * Fix not sending ERR_INVALIDMODEPARAM when a parameter is malformed.Gravatar Sadie Powell2021-02-271-0/+11
| | | | | | | | Closes #1850.
* | Add stdalgo::equal_range and switch more stuff to iterator_range.Gravatar Sadie Powell2020-11-111-9/+3
| |
* | Clean up a bunch of contructors and destructors.Gravatar Sadie Powell2020-11-011-8/+0
| |
* | Move FindNickOnly to UserManager.Gravatar Sadie Powell2020-02-091-1/+1
| |
* | Move FindNick to UserManager.Gravatar Sadie Powell2020-02-091-1/+1
| |
* | Use C++11 inline initialisation for class members.Gravatar Sadie Powell2020-02-061-5/+0
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-5/+10
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-5/+10
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-271-3/+3
|\|
| * Add a constant for the maximum length of a mode parameter.Gravatar Peter Powell2019-07-231-3/+3
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-161-1/+5
|\|
| * Show the mode syntax in ERR_INVALIDMODEPARAM.Gravatar Peter Powell2019-06-121-1/+5
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-05-151-1/+1
|\|
| * Fix grammar in unknown mode/snomask character messages.Gravatar Robby2019-04-211-1/+1
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-03-301-7/+7
|\|
| * Check perms for removal of oper-only channel modes.Gravatar Matt Schatz2019-03-141-5/+5
| | | | | | | | | | | | | | | | | | Oper-only channel modes are currently unsettable by any channel op, oper or not. Correct this by checking both directions of an oper-only channel mode and continue only checking the setting of an oper-only user mode. As anyone should be able to unset their own user modes and UnOper() removes all oper-only user modes automatically.
| * Various text improvements: consistency, syntax, help and doc updates/fixes.Gravatar Robby2019-02-181-2/+2
| |
* | UserManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
| |
* | ModeParser: remove fakederef.Gravatar Sadie Powell2019-02-071-4/+4
|/
* Remove trailing whitespace from various source files.Gravatar Peter Powell2019-01-241-1/+1
|
* Move the <disabled> tag out of the core to a new module.Gravatar Peter Powell2019-01-241-11/+0
|
* Improve the error messages given when creating a mode.Gravatar Peter Powell2019-01-101-7/+17
|
* Send the 001-004 numerics and MOTD/LUSERS from core_info.Gravatar Peter Powell2018-08-221-25/+0
| | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-131-30/+12
| | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* Add ERR_INVALIDMODEPARAM for responding to invalid mode params.Gravatar Peter Powell2018-01-291-0/+5
| | | | | | | | | | | | | | | Currently on invalid modes we do a combination of different things: 1. Send a custom mode-specific numeric (which often collides with other modes). 2. Send a server notice. 3. Do absolutely nothing. This new numeric is a generic way of handling invalid parameters when setting a mode that avoids all of the mistakes of the previous behaviour.
* Ensure that ModeParser doesn't try to process a non-existent mode.Gravatar B00mX0r2017-12-111-0/+6
| | | | This fixes #1431 and closes #1432.
* Extract RFC modes from the core to core_channel and core_user.Gravatar Peter Powell2017-12-101-48/+0
|