summaryrefslogtreecommitdiff
path: root/src/modules/m_filter.cpp
AgeCommit message (Collapse)Author
2018-01-06Rework message handling.Peter Powell
- 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.
2017-12-21Add SHUN as a /filter actionB00mX0r
This resolves #483
2017-12-19Add snomask alert on m_filter quit/part G-LineB00mX0r
Resolves an oversight of #1264
2017-12-03Send a snotice when m_filter kills or G-Lines a client.ThatOneRoadie
Closes #1264.
2017-12-03Move OnSync{Channel,Network,User} to ServerEventListener.Peter Powell
2017-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2017-07-12Add CXX11_OVERRIDE to overridden members that lack it.Peter Powell
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
2016-08-22Add stdalgo::string::equalsci and use it instead of irc::string for ↵Attila Molnar
case-insensitive comparison
2016-02-25Introduce Stats::Context, pass it to the OnStats hook and switch all code to itAttila Molnar
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2014-12-15Change type of some associative containers to their flat versions, including ↵Attila Molnar
Extensible storage
2014-04-26Remove redundant IS_LOCAL() checks discovered by static assertsAttila Molnar
2014-04-11m_filter Allow exemption of messages sent to nicks specified in ↵Attila Molnar
<exemptfromfilter> tags Issue #655
2014-04-11m_filter Rename config key used in exemptfromfilter from "channel" to ↵Attila Molnar
"target", but keep compatibility
2014-04-11m_filter Rename exemptfromfilter field to exemptedchans, use std::set::count()Attila Molnar
2014-04-11m_filter Use case insensitive compare for exempted targets, add typedef for ↵Attila Molnar
the set
2014-01-25Omit the server name internally when building a /STATS reply and prepend it ↵Attila Molnar
later
2014-01-05Remove useless ULine() checksAttila Molnar
2013-12-19m_filter Remove ImplFilter and needless dynamic_castAttila Molnar
2013-12-18Clean up CoreExceptionAttila Molnar
- Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-09-13Pass an interface to the OnSync hooksattilamolnar
Remove Module::ProtoSendMetaData()
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-30Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵attilamolnar
and on rehash This eliminates the need for calling OnRehash() in init()
2013-08-12Add ConfigTag::getDuration() with optional bounds checkingattilamolnar
2013-08-04Automatically attach modules to eventsattilamolnar
2013-08-04Modify the log message to contain the log type.Peter Powell
2013-08-04Change modules to use the MODNAME constant when logging.Peter Powell
The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them.
2013-08-04Remove a few not-so-useful debug messagesattilamolnar
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-06Merge insp20attilamolnar
2013-05-21Merge pull request #545 from SaberUK/master+logging-cleanupAttila Molnar
Clean up the logging system (part 1 of 2).
2013-05-20Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵attilamolnar
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
2013-05-19Fix spacing in calls to LogManager::Log.Peter Powell
2013-05-16Remove unused variables, avoid copies where possible, check empty() instead ↵attilamolnar
of size() == 0 Most of these were detected by cppcheck
2013-05-15Tidy up keywords on module methods.Peter Powell
- 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.
2013-05-14Add method for writing server notices.Peter Powell
This allows us to send a server notice to a user without worrying about whether they are registered or not. If a user receives a server notice and they are not registered then the nickname field will contain an asterisk instead of their nick name.
2013-04-28Merge insp20attilamolnar
2013-04-21m_filter, m_rline Remove rlines and filters when the regex engine changes or ↵attilamolnar
becomes unavailable
2013-04-21m_filter Fix memory leak on unloadattilamolnar
2013-04-12Tidy up source files:Peter Powell
- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-10Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()attilamolnar
2013-04-03Convert InspIRCd::Duration() to be staticattilamolnar
2012-12-02Register all commands, modes and extensions using AddService()attilamolnar
AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
2012-12-02Dynamically determine the size of the eventlist[] passed to Attach()attilamolnar
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
2012-11-12Remove usage of the deprecated ConfigReaderattilamolnar
2012-11-07Fix typo in m_filter.Peter Powell
2012-10-19m_filter More cleanup and optimizationsattilamolnar
Fix a typo
2012-10-19m_filter Don't move the filter to the beginning of the vector when a match ↵attilamolnar
occurs