aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
Commit message (Expand)AuthorAgeFilesLines
* 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
* | BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one BanCa...Gravatar attilamolnar2013-04-101-4/+1
* | XLine: Provide a default implementation for DisplayExpiry()Gravatar attilamolnar2013-04-091-27/+4
* | Move member variables from User to LocalUser•••- idle_lastmsg - dns_done - quitting_sendq - exempt - lastping Gravatar attilamolnar2013-04-011-8/+12
|/
* Fix expired xlines being treated as live ones in XLineManager::AddLine()•••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 Gravatar attilamolnar2012-12-051-1/+6
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-4/+4
* Change empty string assignments to .clear() or remove them entirely•••Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f Gravatar attilamolnar2012-11-281-1/+1
* 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
* 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.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Move command-line items to CommandLineConf•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11949 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-1/+2
* Split LocalUser and RemoteUser•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11940 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-4/+4
* Update documentation and remove unused classes/functions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11938 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-13/+93
* Get rid of a bunch of memory-wasting C-style strings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-031-2/+2
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-7/+7
* Fix iteration of ServerInstance->Users->local_users now that QuitUser can mod...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11732 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-161-2/+3
* Remove calls to strdup() in core, it is not better than std::string•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11623 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-10/+15
* Don't apply bans to E:Lined connections. Should fix bug #896.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11452 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-08-011-0/+4
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1