aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-3/+3
|
* Start using DurationString() in X-line additions andGravatar Matt Schatz2019-02-181-5/+4
| | | | a few other modules where it fits better than just showing seconds.
* Various text improvements: consistency, syntax, help and doc updates/fixes.Gravatar Robby2019-02-181-1/+1
|
* Add the reason to xline removal notices. (#1545)Gravatar Matt Schatz2019-01-241-4/+6
| | | | | | | | | 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-.
* Improve X-line text consistency.Gravatar Matt Schatz2019-01-091-2/+2
| | | | | | | | | | - 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>
* Only parse valid durations, don't treat invalid multipliers as seconds (#1538)Gravatar linuxdaemon2018-12-211-1/+5
|
* Store durations as unsigned long not long in XLine and m_filter.Gravatar Peter Powell2018-12-131-1/+1
|
* Remove the original line parameter of On{Pre,Post}Command.Gravatar Peter Powell2018-08-101-1/+1
| | | | | | | | | 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.
* Use CommandBase::Params instead of std::vector<std::string>.Gravatar Peter Powell2018-07-261-3/+3
| | | | | This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-1/+1
|\
| * Fix blank instead of empty PART message when a user is shunnedGravatar B00mX0r2018-04-111-1/+1
| |
* | Move OnStats from the core to a cross-module event.Gravatar Peter Powell2018-04-081-2/+5
| | | | | | | | | | Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
* | Add SHUN as a /filter actionGravatar B00mX0r2017-12-211-39/+1
| | | | | | | | This resolves #483
* | Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-7/+7
| | | | | | | | GCCs warnings for this are much better than Clangs.
* | Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-3/+7
|\|
| * Work around removing shuns on nicks when the nick is online.Gravatar Peter Powell2017-11-091-2/+6
| |
* | Switch from std::stringstream to irc::spacesepstream.Gravatar Peter Powell2017-10-191-2/+2
| | | | | | | | | | The latter is more suited to the things we have previously been using std::stringstream for.
* | Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-121-1/+1
| | | | | | | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* | m_shun Add support for shunning CIDR masksGravatar Attila Molnar2016-09-121-0/+3
| | | | | | | | Issue #1195
* | Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-3/+3
| |
* | Convert mods calling the old compat wrapper of ModuleManager::SetPriority() ↵Gravatar Attila Molnar2015-02-151-1/+1
| | | | | | | | to use the current method, remove wrapper
* | Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-4/+2
| | | | | | | | Extensible storage
* | Make various self contained methods static.Gravatar Peter Powell2013-12-151-1/+1
| | | | | | | | | | - InspIRCd::IsValidMask - InspIRCd::TimeString
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-1/+0
| |
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-3/+1
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | 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
| |
* | Merge insp20Gravatar attilamolnar2013-06-061-2/+2
|\|
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-2/+2
| |
* | Convert XLine::Displayable to return a std::string.Gravatar Peter Powell2013-05-211-2/+2
| |
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-6/+6
| | | | | | | | | | - 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.
* | Add method for writing server notices.Gravatar Peter Powell2013-05-141-3/+3
| | | | | | | | | | | | | | | | | | 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.
* | Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()Gravatar attilamolnar2013-04-101-1/+1
| |
* | XLine: Provide a default implementation for DisplayExpiry()Gravatar attilamolnar2013-04-091-6/+0
| |
* | Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-2/+2
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-5/+0
| |
* | Move member variables from User to LocalUserGravatar attilamolnar2013-04-011-2/+3
|/ | | | | | | | - idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
* Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a ↵Gravatar attilamolnar2012-12-151-2/+2
| | | | | | target nickname If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
* m_cban, m_rline, m_shun Don't broadcast when user is a local userGravatar attilamolnar2012-12-051-0/+3
| | | | spanningtree sends an ADDLINE in this case
* Register all commands, modes and extensions using AddService()Gravatar attilamolnar2012-12-021-1/+1
| | | | AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
* Dynamically determine the size of the eventlist[] passed to Attach()Gravatar attilamolnar2012-12-021-1/+1
| | | | m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
* Attach to events and register services in init()Gravatar attilamolnar2012-12-021-0/+4
|
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-4/+4
|
* m_cban, m_rline, m_shun Broadcast these commands as some services ↵Gravatar attilamolnar2012-10-041-1/+1
| | | | implementations send them (even though they shouldn't)
* Fix more undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-301-1/+2
| | | | | | std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
* m_shun Convert enabled commands to uppercase so they match correctly even if ↵Gravatar attilamolnar2012-09-131-0/+1
| | | | they're lowercase in the config
* m_shun Display shun target correctly in the error message when adding a new ↵Gravatar attilamolnar2012-07-071-1/+1
| | | | shun and it exists
* m_shun Fix out of bounds vector access leading to crashes when hiding part ↵Gravatar attilamolnar2012-06-171-2/+2
| | | | reason for a shunned user
* m_shun Fix a couple of things, namelyGravatar attilamolnar2012-06-171-57/+25
| | | | | | | | - remove OnUserConnect hook as it was completly a no-op - remove call to XLineManager::ApplyLines() as it iterates the local userlist and made no sense - return CMD_SUCCESS when /SHUN succeeded, CMD_FAILURE otherwise - remove unused exception handler - don't route SHUN commands at all, spanningtree adds and removes the lines automatically
* Module description updatesGravatar Robby-2012-05-301-2/+2
|