summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
AgeCommit message (Collapse)Author
2021-04-27Fix a bunch of weird indentation and spacing issues.Sadie Powell
2021-03-05Update copyright headers.InspIRCd Robot
2021-02-26Update copyright headers.InspIRCd Robot
2021-01-13Add a shun option to only apply when users are fully connected.Sadie Powell
Closes #1825.
2020-10-30Update copyright headers.InspIRCd Robot
2020-09-27Add a shun option for cleaning problematic allowed commands.Sadie Powell
2020-09-27Make shun block client-only tags by default.Sadie Powell
2020-09-27Refactor the shun module slightly.Sadie Powell
2020-05-05Fix shuns not being applied correctly.Sadie Powell
2020-04-24Update copyright headers.InspIRCd Robot
2020-04-10Update the module descriptions using mkversion.Sadie Powell
2020-03-29Add support for the servers/ignore-shun privilege.Sadie Powell
2020-03-29Include ADMIN and OPER in the default for <shun:enabledcmds>.Sadie Powell
2020-03-29Clean up the parsing logic for <shun:enabledcmds>.Sadie Powell
2020-02-18Generalise XLine stats numerics using RPL_STATS from aircd.Sadie Powell
2020-01-11Update copyright headers.InspIRCd Robot
2019-04-28Textual improvements and fixes such as typos, casing, etc. (#1612)Robby
2019-02-18Start using DurationString() in X-line additions andMatt Schatz
a few other modules where it fits better than just showing seconds.
2019-02-18Various text improvements: consistency, syntax, help and doc updates/fixes.Robby
2019-01-24Add the reason to xline removal notices. (#1545)Matt Schatz
Show the reason in manual xline removal SNOTICEs, just like expiry SNOTICEs do. This modifies XLineManager::DelLine() to require another string reference passed to it. Requested by @Robby-.
2019-01-09Improve X-line text consistency.Matt Schatz
- Change any "-Line", ":Line", or "*line" to "-line" throughout the X-line code, comments, and documentation. - Add periods to the end of some notices. - Correct a typo in the Q-line code comments. - Update the filter module documentation (shun addition). Co-authored-by: Robby <robby@chatbelgie.be>
2018-12-21Only parse valid durations, don't treat invalid multipliers as seconds (#1538)linuxdaemon
2018-12-13Store durations as unsigned long not long in XLine and m_filter.Peter Powell
2018-08-10Remove the original line parameter of On{Pre,Post}Command.Peter Powell
In the brave new world of message tags and alternate wire formats this is no longer something that is appropriate to expose. In reality it was only ever used by m_alias which now reconstitutes the command name and parameters into a RFC 1459-style message for whatever it needs to do.
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-04-22Merge tag 'v2.0.26' into master.Peter Powell
2018-04-11Fix blank instead of empty PART message when a user is shunnedB00mX0r
2018-04-08Move OnStats from the core to a cross-module event.Peter Powell
Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
2017-12-21Add SHUN as a /filter actionB00mX0r
This resolves #483
2017-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2017-11-12Merge tag 'v2.0.25' into master.Peter Powell
2017-11-09Work around removing shuns on nicks when the nick is online.Peter Powell
2017-10-19Switch from std::stringstream to irc::spacesepstream.Peter Powell
The latter is more suited to the things we have previously been using std::stringstream for.
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-09-12m_shun Add support for shunning CIDR masksAttila Molnar
Issue #1195
2016-02-25Introduce Stats::Context, pass it to the OnStats hook and switch all code to itAttila Molnar
2015-02-15Convert mods calling the old compat wrapper of ModuleManager::SetPriority() ↵Attila Molnar
to use the current method, remove wrapper
2014-12-15Change type of some associative containers to their flat versions, including ↵Attila Molnar
Extensible storage
2013-12-15Make various self contained methods static.Peter Powell
- InspIRCd::IsValidMask - InspIRCd::TimeString
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-04Automatically attach modules to eventsattilamolnar
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-06Merge insp20attilamolnar
2013-06-05Remove unnecessary string copies and dead codeattilamolnar
2013-05-21Convert XLine::Displayable to return a std::string.Peter Powell
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-10Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()attilamolnar
2013-04-09XLine: Provide a default implementation for DisplayExpiry()attilamolnar