aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2022-12-301-2/+1
|
* Clear the ban cache when an xline is expired as well as removed.Gravatar Sadie Powell2022-10-151-0/+1
|
* Fix unnecessarily using c_str in parameters that take a std::string.Gravatar Sadie Powell2022-09-041-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2022-04-281-1/+1
|
* Fix some more grammar errors in xline messages.Gravatar Sadie Powell2022-04-051-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2021-08-271-0/+1
|
* Fix various spelling issues (#1883).Gravatar Josh Soref2021-06-211-1/+1
| | | | Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* Code refactor and minor fix (#1879)Gravatar Herman2021-06-121-2/+3
|
* Fix a bunch of weird indentation and spacing issues.Gravatar Sadie Powell2021-04-271-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-2/+2
|
* Send RPL_SAVENICK from irc2 when renaming a user to their UUID.Gravatar Sadie Powell2020-12-221-0/+1
|
* Replace all erroneous space indentation with tab indentation.Gravatar Sadie Powell2020-07-291-19/+19
|
* Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
|
* Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-2/+2
|
* Generalise XLine stats numerics using RPL_STATS from aircd.Gravatar Sadie Powell2020-02-181-2/+25
|
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-3/+8
|
* Only skip applying more X-lines to a user if they have been killed.Gravatar Peter Powell2019-05-171-1/+5
| | | | | | | | This fixes an issue with the previous commit where if a user had a non-killing X-line applied to them (e.g. Q-line) they would not have any further X-lines applied to them. Thanks to @linuxdaemon for pointing this out.
* Fix applying pending xlines to online users.Gravatar Peter Powell2019-05-161-2/+5
|
* Fix BanCache entries existing after X-line expiry.Gravatar Matt Schatz2019-03-101-1/+1
| | | | | | | When DefaultApply() adds a hit to the BanCache it uses the X-line duration to set a duration on the entry. This can result in an entry lasting longer than the X-line itself. Fix this by setting the entry duration to the time left on the X-line.
* Improve the handling of config X-lines and filters. (#1583)Gravatar Matt Schatz2019-02-221-19/+40
|
* X-line expiries: use the new DurationString() function.Gravatar Matt Schatz2019-02-181-2/+2
|
* Add the reason to xline removal notices. (#1545)Gravatar Matt Schatz2019-01-241-1/+3
| | | | | | | | | 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-6/+6
| | | | | | | | | | - 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>
* Store durations as unsigned long not long in XLine and m_filter.Gravatar Peter Powell2018-12-131-5/+5
|
* Show reasons in xline expiry messages.Gravatar Robby2018-10-141-2/+2
|
* Don't sync xlines defined in the config and expire them on rehash.Gravatar Peter Powell2018-09-231-1/+22
| | | | Closes #1427.
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-4/+0
|\
| * Fix ELine::Matches returning false on existing matchGravatar genius30002018-04-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When checking for an E-Line match, we want to actually check for a current match even if we previously matched and are set exempt. This fixes situations where you have an E-Lined CGI:IRC address, a G-Lined IP range for some area/host/etc and a smaller E-Lined IP range for known good clients. Currently when CGI:IRC changes the IP, E-Lines are rechecked but because the user is already exempt (from the CGI:IRC E-Line), they are set no longer exempt and match a G-Line, when they should match an E-Line. This exact change has been done before in commit 'c8b344e' and shortly reverted in 'c490a90' to fix issue #989 (CGI:IRC users remaining exempt when the CGI:IRC address is E-Lined but they are not). The actual cause to this issue was likely that the user's hostname was not changed from the CGI:IRC hostname/IP prior to rechecking E-Lines. This is being fixed in a separate commit.
* | Move OnStats from the core to a cross-module event.Gravatar Peter Powell2018-04-081-0/+1
| | | | | | | | | | Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
* | Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-5/+5
| | | | | | | | GCCs warnings for this are much better than Clangs.
* | Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-3/+3
| | | | | | | | | | This removes the need to invalidate the cache after changing a user's hostname.
* | Merge the latest changes from insp20 into master.Gravatar Peter Powell2017-10-121-9/+3
|\|
| * Fix killing elined clients on [gkz]line in some cases.Gravatar Peter Powell2017-09-111-8/+3
| |
| * Revert c8b344ea748d62d9f37cacd4dd785f15b186725c to fix regressionGravatar Attila Molnar2015-04-161-0/+3
| | | | | | | | Fixes issue #989 reported by @B00mX0r
| * Fix elines not matching elined users when rechecking elined statusGravatar Attila Molnar2015-01-171-3/+0
| |
* | Replace irc::string in XLineLookup with irc::insensitive_swo mapGravatar Attila Molnar2016-08-221-2/+2
| |
* | Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-2/+2
| |
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-1/+1
| | | | | | | | parameters
* | Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.Gravatar Peter Powell2015-01-241-1/+1
| | | | | | | | This is specified in RFC 1459 so we should probably use it.
* | Add stdalgo::erase() and use it to simplify codeGravatar Attila Molnar2014-11-011-6/+2
| |
* | Access local user list via new UserManager::GetLocalUsers() and make ↵Gravatar Attila Molnar2014-07-191-5/+8
| | | | | | | | local_users private
* | Move and rename typedef LocalUserList to UserManager::LocalListGravatar Attila Molnar2014-07-191-5/+5
| |
* | Remove now needless User::ForceNickChange()Gravatar Attila Molnar2014-07-031-1/+1
| | | | | | | | Change call sites to call ChangeNick()
* | Change allocation of InspIRCd::BanCache to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-3/+3
| | | | | | | | containing it
* | Pull in bancache.h from inspircd.hGravatar Attila Molnar2014-06-131-1/+0
| |
* | Omit the server name internally when building a /STATS reply and prepend it ↵Gravatar Attila Molnar2014-01-251-1/+1
| | | | | | | | later
* | Convert LocalUserList to an intrusively linked listGravatar Attila Molnar2014-01-241-3/+3
| |
* | Improve UserManager::QuitUser() and related codeGravatar Attila Molnar2014-01-051-2/+2
| | | | | | | | | | | | - Make operreason optional; NULL means same as quitreason - Remove User::quietquit, it is now handled internally in spanningtree - Send snotice about quitting remote users from spanningtree
* | Rename <options:moronbanner> to <options:xlinemessage>.Gravatar Peter Powell2013-08-101-2/+2
| | | | | | | | This name is more descriptive of what is actually is used for.
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-3/+3
| |