aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | 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
| | | | | | | | instead of const char*
* | Replace some C-isms with C++-isms.Gravatar Peter Powell2013-05-151-4/+4
| | | | | | | | | | | | * 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask.
* | Add method for writing server notices.Gravatar Peter Powell2013-05-141-1/+1
| | | | | | | | | | | | | | | | | | 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.
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-1/+1
| |
* | BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one ↵Gravatar attilamolnar2013-04-101-4/+1
| | | | | | | | BanCacheHit constructor is enough
* | XLine: Provide a default implementation for DisplayExpiry()Gravatar attilamolnar2013-04-091-27/+4
| |
* | Move member variables from User to LocalUserGravatar attilamolnar2013-04-011-8/+12
|/ | | | | | | | - idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
* Fix expired xlines being treated as live ones in XLineManager::AddLine()Gravatar attilamolnar2012-12-051-1/+6
| | | | | | | | | This fixes ADDLINEs not being propagated and /gline etc. failing for already existing but expired xlines Special thanks to @JDowny (TinMan) for his detailed report and cooperation that made this fix possible Fixes #306 reported by @TurkDesk Fixes #379 reported by @JDowny
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-4/+4
|
* Change empty string assignments to .clear() or remove them entirelyGravatar attilamolnar2012-11-281-1/+1
| | | | Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-1/+1
|
* Remove unnecessary cleanup in XLineManager destructorGravatar attilamolnar2012-08-251-5/+0
|
* Remove unnecessary string copy in XLineManager::InvokeStatsGravatar attilamolnar2012-08-251-4/+2
|
* Remove negative BanCache entries only when the AddLine is successful instead ↵Gravatar attilamolnar2012-07-221-2/+2
| | | | of removing them before checking anything
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+18
|
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Move command-line items to CommandLineConfGravatar danieldg2009-10-211-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11949 e03df62e-2008-0410-955e-edbf42e46eb7
* Split LocalUser and RemoteUserGravatar danieldg2009-10-211-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11940 e03df62e-2008-0410-955e-edbf42e46eb7
* Update documentation and remove unused classes/functionsGravatar danieldg2009-10-211-13/+93
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11938 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of a bunch of memory-wasting C-style stringsGravatar danieldg2009-10-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix iteration of ServerInstance->Users->local_users now that QuitUser can ↵Gravatar danieldg2009-09-161-2/+3
| | | | | | modify the vector git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11732 e03df62e-2008-0410-955e-edbf42e46eb7