aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_censor.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update the module descriptions using mkversion.Gravatar Sadie Powell2020-04-101-1/+1
* Add the Numerics::CannotSendTo class and switch stuff to use it.Gravatar Sadie Powell2020-04-041-6/+5
* Update copyright headers.Gravatar InspIRCd Robot2020-01-311-1/+1
* Add a method for getting the name of a MessageTarget.•••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. Gravatar Sadie Powell2020-01-231-5/+1
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-3/+8
* Some more text fixes and improvements (#1618).Gravatar Robby2019-04-281-1/+1
* Make more modules rehash atomically (#1535)•••Have each module validate the values it loads before setting them, so any errors don't result in partial application of the configs Gravatar linuxdaemon2018-12-191-3/+4
* Fix the censor module sending the wrong numeric in some cases.•••The appropriate numeric response when a user has the censor mode enabled is ERR_CANTSENDTOUSER not ERR_CANTSENDTOUSER. Gravatar Peter Powell2018-10-251-13/+30
* Fix some oversights relating to numerics.•••- ERR_CANNOTSENDTOCHAN only takes the channel name and a message. - ERR_INVALIDCAPCMD is 410 not 232. Gravatar Peter Powell2018-04-221-1/+1
* Replace ERR_{NOCTCPALLOWED,WORDFILTERED} with ERR_CANNOTSENDTOCHAN.•••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. Gravatar Peter Powell2018-04-221-1/+1
* Replace the remaining use of irc::string with irc::find.Gravatar Peter Powell2018-04-161-9/+10
* Rework message handling.•••- 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. Gravatar Peter Powell2018-01-061-8/+9
* 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()•••Avoids a call to the templated ConvToStr() which uses std::stringstream for conversion Gravatar Attila Molnar2016-08-221-1/+1
* 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
* | Change type of some associative containers to their flat versions, including ...Gravatar Attila Molnar2014-12-151-1/+1
* | Remove some dead codeGravatar Attila Molnar2014-01-311-4/+0
* | Use WriteNumeric() everywhere we send numerics and include the user's nick au...Gravatar Adam2013-11-121-1/+1
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-6/+0
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load a...•••This eliminates the need for calling OnRehash() in init() Gravatar attilamolnar2013-08-301-4/+1
* | 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() w...Gravatar attilamolnar2013-07-011-2/+2
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to On...•••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 Gravatar attilamolnar2013-05-201-7/+2
* | Tidy up keywords on module methods.•••- 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. Gravatar Peter Powell2013-05-151-5/+5
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-5/+0
|/
* Dynamically determine the size of the eventlist[] passed to Attach()•••m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove Gravatar attilamolnar2012-12-021-1/+1
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-4/+5
* Fix more undefined behavior caused by referencing the returned buffer by std:...•••See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88 Gravatar attilamolnar2012-09-301-3/+4
* Module description updatesGravatar Robby-2012-05-301-2/+2
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
* Restore <options:exemptchanops> with long names•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12502 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-201-2/+1
* Eliminate duplicate names between user and channel modes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12414 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-091-1/+1
* Add Module::init() for correct exception handling during hook registration•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12278 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-171-4/+5
* Remove VF_COMMON from mode-provider modules (no longer needed due to better C...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-151-1/+1
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Fixes from vtable cross-check•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11977 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-251-2/+2
* Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReader•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-181-6/+4
* Remove dummy API_VERSION from Version constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-171-1/+1
* Make OnChannelRestrictionApply take a User* instead of a Membership* [jackmcb...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11858 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-121-1/+1
* m_exemptchanops by jackmcbarn - channel mode +X to allow per-channel setting•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-121-3/+4
* Add names for all modes (part 1 of named channel mode list)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11809 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-081-2/+2
* Run DelMode and DelModeWatcher in RemoveModule•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11799 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-051-2/+0
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-6/+6
* Describe module purpose in /MODULES output•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-221-1/+1