aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_censor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Demote the censor module to inspircd-contrib.Gravatar Sadie Powell2021-06-011-123/+0
|
* Rename Simple{Channel,User}ModeHandler to match other mode handlers.Gravatar Sadie Powell2021-06-011-2/+2
|
* Merge branch 'insp3' into master.Gravatar Sadie Powell2021-05-141-2/+2
|\
| * Update copyright headers.Gravatar InspIRCd Robot2021-05-141-2/+2
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-04-271-4/+3
|\|
| * Rename censor_t to CensorMap as the _t suffix is reserved by POSIX.Gravatar Sadie Powell2021-04-171-5/+4
| |
* | Switch simple iterator loops to use range-based for loops.Gravatar Sadie Powell2021-04-071-5/+5
| |
* | Constify variables within loops.Gravatar Sadie Powell2021-04-011-1/+1
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-2/+2
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-03-051-2/+2
| |
* | Move FilePosition to fileutils.h and use in ConfigTag.Gravatar Sadie Powell2020-11-031-1/+1
| |
* | Add stdalgo::iterator_range and switch config tag reading to use it.Gravatar Sadie Powell2020-10-311-3/+1
| | | | | | | | | | This allows us to use range-based for loops which were not possible with the previous config tag system.
* | 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-7/+3
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-091-6/+5
|\|
| * Add the Numerics::CannotSendTo class and switch stuff to use it.Gravatar Sadie Powell2020-04-041-6/+5
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-02-041-6/+2
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-311-1/+1
| |
| * Add a method for getting the name of a MessageTarget.Gravatar Sadie Powell2020-01-231-5/+1
| | | | | | | | | | | | This fixes a minor bug in the filter module where the target would be blank in messages when a server-targetted message matches a filter.
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-3/+8
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-3/+8
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-05-151-1/+1
|\|
| * Some more text fixes and improvements (#1618).Gravatar Robby2019-04-281-1/+1
| |
* | Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-3/+3
|/
* Make more modules rehash atomically (#1535)Gravatar linuxdaemon2018-12-191-3/+4
| | | | | Have each module validate the values it loads before setting them, so any errors don't result in partial application of the configs
* Fix the censor module sending the wrong numeric in some cases.Gravatar Peter Powell2018-10-251-13/+30
| | | | | The appropriate numeric response when a user has the censor mode enabled is ERR_CANTSENDTOUSER not ERR_CANTSENDTOUSER.
* Fix some oversights relating to numerics.Gravatar Peter Powell2018-04-221-1/+1
| | | | | - ERR_CANNOTSENDTOCHAN only takes the channel name and a message. - ERR_INVALIDCAPCMD is 410 not 232.
* Replace ERR_{NOCTCPALLOWED,WORDFILTERED} with ERR_CANNOTSENDTOCHAN.Gravatar Peter Powell2018-04-221-1/+1
| | | | | | There is no reason for these responses to have their own numerics when other modules do not. The only thing this does is make life harder for client developers.
* Replace the remaining use of irc::string with irc::find.Gravatar Peter Powell2018-04-161-9/+10
|
* Rework message handling.Gravatar Peter Powell2018-01-061-8/+9
| | | | | | | | | | | | | - 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.
* Only subclass Simple{Channel,User}ModeHandler when necessary.Gravatar Peter Powell2017-11-131-20/+4
|
* Add a helper function for calling the OnCheckExemption event.Gravatar Peter Powell2017-10-211-2/+1
|
* Move the OnCheckExemption hook out of the core.Gravatar Peter Powell2017-03-201-2/+10
|
* m_censor Pass irc::string as C string to WriteNumeric()Gravatar Attila Molnar2016-08-221-1/+1
| | | | Avoids a call to the templated ConvToStr() which uses std::stringstream for conversion
* m_censor Switch to stdalgo::string::replace_all()Gravatar Attila Molnar2016-08-221-1/+1
|
* Merge insp20Gravatar Attila Molnar2016-08-171-1/+1
|\
| * m_censor Fix possible incorrect cast of destGravatar Attila Molnar2016-08-131-1/+1
| |
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-1/+1
| | | | | | | | parameters
* | Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-1/+1
| | | | | | | | Extensible storage
* | Remove some dead codeGravatar Attila Molnar2014-01-311-4/+0
| |
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-1/+1
| | | | | | | | automatically
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-6/+0
| |
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-4/+1
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+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
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵Gravatar attilamolnar2013-05-201-7/+2
| | | | | | | | | | | | OnUserMessage and OnUserPreMessage All modules (except m_nonotice) that perform filtering on messages have common logic for handling PRIVMSGs and NOTICEs and most of them run the exact same code in both cases
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-5/+5
| | | | | | | | | | - Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-5/+0
|/