aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'insp3' into master.Gravatar Sadie Powell2021-12-141-1/+1
|\
| * If a user has a unique username then include it in bans.Gravatar Sadie Powell2021-12-141-1/+1
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-11-241-2/+4
|\|
| * Use a mode reference in the messageflood module.Gravatar Sadie Powell2021-11-161-1/+3
| |
* | Apply the final keyword to all module classes where appropriate.Gravatar Sadie Powell2021-10-041-1/+1
| |
* | Mark more mode classes as final.Gravatar Sadie Powell2021-10-011-1/+1
| |
* | Mark all mode classes as final.Gravatar Sadie Powell2021-10-011-1/+2
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-07-011-1/+1
|\|
| * Fix various spelling issues (#1883).Gravatar Josh Soref2021-06-211-1/+1
| | | | | | | | Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* | Add a forwarding overload of SimpleExtItem#Set.Gravatar Sadie Powell2021-03-171-1/+1
| |
* | Pascalize Set in extension item classes.Gravatar Sadie Powell2021-03-171-1/+1
| |
* | Pascalize Get in extension item classes.Gravatar Sadie Powell2021-03-171-1/+1
| |
* | Convert ConfigTag from reference<> to std::shared_ptr<>.Gravatar Sadie Powell2020-10-311-1/+1
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-111-1/+1
|\|
| * Update the module descriptions using mkversion.Gravatar Sadie Powell2020-04-101-1/+1
| |
* | Improve storage of module description, flags, and link data.Gravatar Sadie Powell2020-04-111-6/+2
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-5/+6
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-5/+6
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-161-7/+20
|\|
| * Show the mode syntax in ERR_INVALIDMODEPARAM.Gravatar Peter Powell2019-06-121-0/+1
| |
| * Make messageflood weights configurable.Gravatar Peter Powell2019-06-061-7/+19
| | | | | | | | | | | | | | Also, default TAGMSG to being worth 0.2 NOTICE/PRIVMSG. This should prevent flood kicks from typing notifications. Closes #1649.
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-05-151-5/+19
|\|
| * Some more text fixes and improvements (#1618).Gravatar Robby2019-04-281-1/+1
| |
| * Update trivially-modifiable modules to handle tag messages.Gravatar Peter Powell2019-04-161-4/+18
| |
* | ModuleManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
| |
* | ModeParser: remove fakederef.Gravatar Sadie Powell2019-02-071-2/+2
| |
* | Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-4/+4
|/
* Fix conversion issues by replacing ConvToInt with ConvToNum<T>.Gravatar Peter Powell2018-12-121-2/+2
| | | | | | | The former was a thin wrapper around atol and brought with it all of the weird parsing logic of atol which is almost never what is actually wanted. It also almost never returned the numeric type which is actually wanted which can cause weird issues when casting.
* Add ERR_INVALIDMODEPARAM for responding to invalid mode params.Gravatar Peter Powell2018-01-291-2/+2
| | | | | | | | | | | | | | | 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.
* Rework message handling.Gravatar Peter Powell2018-01-061-3/+3
| | | | | | | | | | | | | - Move all message-related types to their own header to make moving them to a cross-module events easier. - Rename OnUserMessage to OnUserPostMessage. - Rename OnText to OnUserMessage. - Replace the dest, target_type, and status parameters with the MessageTarget class. - Replace the text, exempt_list, and msgtype parameters with the MessageDetails struct. - Add echooriginal and originaltext to the MessageDetails struct to allow spam filtering to not be broken by cap echo-message.
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-1/+1
| | | | GCCs warnings for this are much better than Clangs.
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+4
|
* Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-1/+1
| | | | | This removes the need to invalidate the cache after changing a user's hostname.
* Add a helper function for calling the OnCheckExemption event.Gravatar Peter Powell2017-10-211-2/+1
|
* Merge pull request #1271 from SaberUK/master+exemptionGravatar Peter Powell2017-07-271-2/+7
|\ | | | | Move the OnCheckExemption hook out of the core.
| * Move the OnCheckExemption hook out of the core.Gravatar Peter Powell2017-03-201-2/+7
| |
* | Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-121-1/+1
|/ | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* m_messageflood Improve kick messageGravatar Attila Molnar2016-08-241-2/+2
| | | | | | Fixes issue #1019 reported by @B00mX0r Also add back a missing word caused by an oversight in #531
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-2/+2
| | | | parameters
* Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-6/+2
| | | | Extensible storage
* Replace irc::modestacker usage with the new ModeParser::Process()Gravatar Attila Molnar2014-09-031-5/+3
|
* Add ParamModeBase and ParamMode, change all parameter modes to inherit from ↵Gravatar Attila Molnar2014-02-151-37/+29
| | | | | | | | | | 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
* Remove PreText()-like functionsGravatar Attila Molnar2014-01-081-9/+5
| | | | Do processing in OnUserPreMessage()
* Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-2/+2
| | | | automatically
* Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-6/+0
|
* Automatically attach modules to eventsGravatar attilamolnar2013-08-041-1/+0
|
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
|
* Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() ↵Gravatar attilamolnar2013-07-011-2/+2
| | | | with ModeHandlers, part 1
* Call Channel::SetModeParam() from the mode parser when needed instead of ↵Gravatar attilamolnar2013-06-131-2/+0
| | | | requiring mode handlers to do it
* Introduce ModeProcessFlags, can be passed to ModeParser::Process() to ↵Gravatar attilamolnar2013-06-131-1/+1
| | | | | | | | 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.)