summaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
AgeCommit message (Collapse)Author
2020-01-11Update copyright headers.InspIRCd Robot
2019-12-31Update my name and email address.Sadie Powell
2019-09-03Add internal serialisations of the DCC allow and silence lists.Peter Powell
2019-09-02When silence mask is prefixed by + or -, it should only remove the first ↵iwalkalone
character, not the entire string (#1698).
2019-06-24Replace large if/else blocks for target.type with switches (#1668).linuxdaemon
2019-05-17Copy the silence flags when sending update notifications.Peter Powell
This fixes a crash bug in the silence module on some versions of GCC.
2019-04-28Some more text fixes and improvements (#1618).Robby
2019-04-28Textual improvements and fixes such as typos, casing, etc. (#1612)Robby
2019-04-18Add the new implementation of the silence module.Peter Powell
This module has significant improvements on the previous one: * Flags which actually make sense. * Better compatibility with other SILENCE implementations. * Support for blocking CTCPs. * Support for blocking TAGMSGs.
2019-04-18Remove m_silence pending a complete rewrite.Peter Powell
2019-02-18Various text improvements: consistency, syntax, help and doc updates/fixes.Robby
2018-07-26Use CommandBase::Params instead of std::vector<std::string>.Peter Powell
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
2018-07-03Use !empty() instead of 'size() > 0' when checking parameter count.B00mX0r
2018-04-16Add ConfigTag::getUInt for reading unsigned config values.Peter Powell
2018-02-02Add names for a bunch of numerics.Peter Powell
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-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2016-08-22Switch to irc::equals() from irc::string in modules that use it for ↵Attila Molnar
comparing names of IRC objects
2016-03-29Simplify GetRouting() methods doing unicastAttila Molnar
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2015-06-03m_silence Change silencelist type to vectorAttila Molnar
2015-06-03m_silence Remove unused parameters from OnBuildExemptList and rename itAttila Molnar
2015-02-05modules/m_silence: Allow U-lined services to bypass silence masksRenegade334
Adds a config entry (silence->exemptuline) that specifies whether users on U-lined servers can bypass silence masks.
2015-01-18Specify which Extensible subclass an ExtensionItem is valid forAttila Molnar
2015-01-10Reduce std::string::substr() usageAttila Molnar
substr() returns a new string while erase() and assign() modify the existing one
2014-07-14Remove typedef UserMembCIter, use Channel::MemberMap::const_iterator insteadAttila Molnar
2014-07-14Rename UserMembList to Channel::MemberMap, switch all code to use itAttila Molnar
2014-07-14Change return type of Channel::GetUsers() to reference from pointer as it is ↵Attila Molnar
never NULL
2014-06-13Change allocation of InspIRCd::Parser to be physically part of the object ↵Attila Molnar
containing it
2014-01-21Merge insp20Attila Molnar
2014-01-09Stop null checking pointers that are always validAttila Molnar
2014-01-05Introduce Server classAttila Molnar
- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-10-26Fix m_silence looking for maxentries in <showwhois> instead of <silence>.Peter Powell
Fixes issue #644.
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-31Improve support for rarely used compilers, EKOPath in this case.ChrisTX
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-04Automatically attach modules to eventsattilamolnar
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-13Remove TR_END, remove TRANSLATEx() from commands that do not need itattilamolnar
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-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-11Convert ISUPPORT to use a map instead of a string.Peter Powell
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2012-12-15Add a flag to Command that controls whether an empty last parameter is ↵attilamolnar
allowed or not
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-12-02Attach to events and register services in init()attilamolnar
2012-11-12Remove usage of the deprecated ConfigReaderattilamolnar