aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_blockcaps.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix some char signedness oversights when using bitsets.Gravatar Peter Powell2018-01-071-4/+5
* 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/+8
* Improve the method that blockcaps uses to block messages.•••Previously it had a list of upper case letters and assumed that all other characters were lower case. This method is flawed as it can be evaded by using non-alphanumeric characters. The new method takes a list of lower case letters as well as upper case letters and ignores any letters which are not listed in one of the two lists. The majority of the code for this was borrowed from the m_anticaps module in inspircd-extras. Gravatar Peter Powell2018-01-031-15/+48
* Use a bitset in blockcaps instead of a char array.Gravatar Peter Powell2017-12-231-4/+5
* Only subclass Simple{Channel,User}ModeHandler when necessary.Gravatar Peter Powell2017-11-131-11/+2
* Add a helper function for calling the OnCheckExemption event.Gravatar Peter Powell2017-10-211-2/+1
* Merge the latest changes from insp20 into master.Gravatar Peter Powell2017-10-121-1/+1
|\
| * Fix exempting CTCP ACTIONs in m_blockcaps and m_noctcp.•••Previously we assumed that CTCP ACTIONs matched "\1ACTION ". This is incorrect because "\1ACTION\1" and "\1ACTION" are valid CTCPs. Gravatar Peter Powell2017-06-161-1/+1
* | Move the OnCheckExemption hook out of the core.Gravatar Peter Powell2017-03-201-2/+7
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ...Gravatar Attila Molnar2016-02-251-1/+1
* | m_blockcaps Reword error message to indicate 'greater than or equal to' logic...Gravatar David Lamont2015-07-011-1/+1
* | m_blockcaps Get rid of needless cast, use unsigned typesGravatar Attila Molnar2014-04-081-3/+3
* | m_blockcaps Simplify CTCP ACTION (/me) detectionGravatar Attila Molnar2014-04-081-14/+6
* | 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-5/+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-7/+1
* | Replace range() with min and max arguments on getInt().Gravatar Peter Powell2013-08-101-12/+2
* | 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-1/+1
* | Compare to ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
* | Merge pull request #545 from SaberUK/master+logging-cleanup•••Clean up the logging system (part 1 of 2).Gravatar Attila Molnar2013-05-211-2/+2
|\ \
| * | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-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-6/+6
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-2/+2
* | Convert ISUPPORT to use a map instead of a string.Gravatar Peter Powell2013-04-111-2/+2
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-5/+1
|/
* Register all commands, modes and extensions using AddService()•••AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing Gravatar attilamolnar2012-12-021-2/+1
* 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
* Attach to events and register services in init()Gravatar attilamolnar2012-12-021-0/+4
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-6/+4
* 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
* 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
* 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-4/+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-1/+1
* 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-1/+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-4/+4
* 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
* Membership* changes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11697 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-131-1/+1
* ModResult conversion: Change return type of all module functions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-7/+7
* Add Module* creator to Command and ModeHandler•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-2/+2
* Change allocation of commands/modes•••API change: Commands passed to AddCommand are no longer deleted automatically This removes lots of needless heap allocation and fixes a few memory leaks by allocating commands and modes as part of the Module rather than creating them separately in the module constructor. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11592 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-9/+4
* OnRehash changes: split to multiple hooks to clarify use and prevent explosio...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-05-241-2/+2
* Nicer reworded numeric from ankit, thanks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11243 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-03-221-1/+1
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1