aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2021-08-271-0/+1
* Fix various spelling issues (#1883).•••Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> Gravatar Josh Soref2021-06-211-1/+1
* 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.•••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. Gravatar Peter Powell2019-05-171-1/+5
* Fix applying pending xlines to online users.Gravatar Peter Powell2019-05-161-2/+5
* Fix BanCache entries existing after X-line expiry.•••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. Gravatar Matt Schatz2019-03-101-1/+1
* 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)•••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-.Gravatar Matt Schatz2019-01-241-1/+3
* Improve X-line text consistency.•••- 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> Gravatar Matt Schatz2019-01-091-6/+6
* 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.•••Closes #1427. Gravatar Peter Powell2018-09-231-1/+22
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-4/+0
|\
| * Fix ELine::Matches returning false on existing match•••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. Gravatar genius30002018-04-061-3/+0
* | Move OnStats from the core to a cross-module event.•••Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later. Gravatar Peter Powell2018-04-081-0/+1
* | Add the override keyword in places that it is missing.•••GCCs warnings for this are much better than Clangs. Gravatar Peter Powell2017-11-211-5/+5
* | Hide User#host and User#dhost and use accessors to modify them.•••This removes the need to invalidate the cache after changing a user's hostname. Gravatar Peter Powell2017-10-281-3/+3
* | 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 regression•••Fixes issue #989 reported by @B00mX0r Gravatar Attila Molnar2015-04-161-0/+3
| * 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
* | Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.•••This is specified in RFC 1459 so we should probably use it. Gravatar Peter Powell2015-01-241-1/+1
* | 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 local_us...Gravatar Attila Molnar2014-07-191-5/+8
* | Move and rename typedef LocalUserList to UserManager::LocalListGravatar Attila Molnar2014-07-191-5/+5
* | Remove now needless User::ForceNickChange()•••Change call sites to call ChangeNick() Gravatar Attila Molnar2014-07-031-1/+1
* | Change allocation of InspIRCd::BanCache to be physically part of the object c...Gravatar Attila Molnar2014-06-131-3/+3
* | 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 l...Gravatar Attila Molnar2014-01-251-1/+1
* | Convert LocalUserList to an intrusively linked listGravatar Attila Molnar2014-01-241-3/+3
* | Improve UserManager::QuitUser() and related code•••- 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 Gravatar Attila Molnar2014-01-051-2/+2
* | Rename <options:moronbanner> to <options:xlinemessage>.•••This name is more descriptive of what is actually is used for. Gravatar Peter Powell2013-08-101-2/+2
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-3/+3
* | Convert XLine::Displayable to return a std::string.Gravatar Peter Powell2013-05-211-13/+13
* | Change the signature of User::ForceNickChange() to accept const std::string& ...Gravatar attilamolnar2013-05-181-1/+1
* | Replace some C-isms with C++-isms.•••* 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask. Gravatar Peter Powell2013-05-151-4/+4
* | Add method for writing server notices.•••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. Gravatar Peter Powell2013-05-141-1/+1
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-1/+1