aboutsummaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add OnUserPreQuit event to allow modules to change quit messages (#1629).Gravatar iwalkalone2019-06-241-12/+27
|
* Document OnUserInit properly and add OnUserPostInit.Gravatar Peter Powell2019-04-041-2/+2
|
* Rename User::nping to nextping for consistency with lastping.Gravatar Peter Powell2019-02-151-3/+3
|
* Refactor UserManager::DoBackgroundUserStuff().Gravatar Peter Powell2019-02-151-46/+55
|
* Call the OnUserInit hook from earlier in UserManager::AddUser.Gravatar Peter Powell2019-01-201-2/+1
| | | | | This fixes messages being lost when sending them to a user who has only just connected to the server.
* Improve X-line text consistency.Gravatar Matt Schatz2019-01-091-1/+1
| | | | | | | | | | - 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>
* Fix a crash when the core_oper module is not loaded.Gravatar Peter Powell2018-12-121-0/+1
|
* Merge tag 'v2.0.27' into master.Gravatar Peter Powell2018-11-071-1/+5
|\
| * Fix exposing the ban reason when an xline is found in the bancache.Gravatar Peter Powell2018-11-041-1/+5
| |
* | Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-131-13/+21
| | | | | | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* | Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-1/+1
| | | | | | | | | | This removes the need to invalidate the cache after changing a user's hostname.
* | Update UserManager documentation and commentsGravatar Attila Molnar2016-08-241-20/+5
| |
* | Check for errors after calling IOHookProvider::OnAccept()Gravatar Attila Molnar2016-08-241-2/+10
| |
* | Call IOHookProviders after the socket has been added to the SocketEngine in ↵Gravatar Attila Molnar2016-08-241-8/+8
| | | | | | | | UserManager::AddUser()
* | Add socket into the SocketEngine as soon as possible in UserManager::AddUser()Gravatar Attila Molnar2016-08-241-7/+7
| |
* | Merge insp20Gravatar Attila Molnar2016-08-171-0/+1
|\|
| * Stop processing the new connection in UserManager::AddUser() when an ↵Gravatar Attila Molnar2016-06-131-0/+1
| | | | | | | | internal SocketEngine error happens and the user is quitted
* | Initialize more User and LocalUser fields using the init listGravatar Attila Molnar2016-08-101-7/+0
| |
* | Keep multiple IOHookProvider references in class ListenSocketGravatar Attila Molnar2016-08-081-2/+6
| | | | | | | | This adds the <bind:hook> config option which works together with <bind:ssl>
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-1/+1
| | | | | | | | parameters
* | Remove UserManager::GarbageCollect()Gravatar Attila Molnar2015-11-031-7/+0
| |
* | Move already sent id rollover handling and static LocalUser::already_sent_id ↵Gravatar Attila Molnar2015-11-031-3/+13
| | | | | | | | into UserManager
* | Add UserManager::NextAlreadySentId() and convert all code to use itGravatar Attila Molnar2015-11-031-0/+5
| |
* | Rewrite invite systemGravatar Attila Molnar2015-11-021-3/+0
| | | | | | | | | | | | | | | | - Moved out of core, now lives entirely in core_channel - Accessible using the provided API after including the appropriate header - Invites are stored in an extension attached to LocalUser/Channel objects, they no longer need special handling when destroying these objects or when lowering TS - Expiration of timed invites are implemented using Timers - When creating a new invite let a non-timed invite override a timed one
* | Remove dead code from UserManager::AddUser()Gravatar Attila Molnar2015-05-221-11/+1
| |
* | Fix some oversightsGravatar Attila Molnar2015-05-221-1/+3
| |
* | Merge insp20Gravatar Attila Molnar2015-04-201-2/+19
|\|
| * Rebuild clone counts on rehashGravatar Adam2015-03-211-0/+16
| |
| * Fix signon time of clients being off by dns_timeout secondsGravatar Attila Molnar2014-12-301-1/+1
| |
* | Merge pull request #971 from SaberUK/master+numeric-xlineGravatar Attila Molnar2015-02-051-1/+1
|\ \ | | | | | | Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
| * | 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.
* | | Implement User::WriteCommonQuit() using ForEachNeighbor() in UserManagerGravatar Attila Molnar2015-01-241-1/+25
|/ /
* | Fix off by one in ping timeout.Gravatar md-52014-08-041-1/+1
| | | | | | | | Been bugging me that users ping timeout at 121 rather than 120 seconds by default.
* | Move and rename typedef LocalUserList to UserManager::LocalListGravatar Attila Molnar2014-07-191-3/+3
| |
* | Erase local users from UserManager::local_list in QuitUser()Gravatar Attila Molnar2014-07-191-3/+1
| |
* | Change allocation of InspIRCd::BanCache to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+2
| | | | | | | | containing it
* | Pull in bancache.h from inspircd.hGravatar Attila Molnar2014-06-131-1/+0
| |
* | Relax fd bounds checkingGravatar Attila Molnar2014-06-071-1/+1
| | | | | | | | We can cope with fds greater than SocketEngine::GetMaxFds() since 3752b3f59d5216d7dc6221a361efc76b9ad2273d
* | Rewrite clone counting to use one map instead of twoGravatar Attila Molnar2014-03-171-40/+21
| |
* | Change allocation of UserManager::clientlist to be physically part of the ↵Gravatar Attila Molnar2014-03-151-11/+4
| | | | | | | | object containing it
* | Change allocation of UserManager::uuidlist to be physically part of the ↵Gravatar Attila Molnar2014-03-141-3/+1
| | | | | | | | object containing it
* | Change all socketengine methods to be staticGravatar Attila Molnar2014-02-081-2/+2
| |
* | Fix ping timeout message seconds vs secondGravatar Adam2014-02-041-1/+1
| |
* | Destroy Memberships of a quitting user in QuitUser() instead of in cull()Gravatar Attila Molnar2014-01-251-0/+1
| |
* | Convert LocalUserList to an intrusively linked listGravatar Attila Molnar2014-01-241-3/+2
| |
* | Split IOHook into IOHook and IOHookProviderGravatar Attila Molnar2014-01-221-14/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create one IOHook instance for each hooked socket which contains all the hook specific data and read/write/close functions, removing the need for the "issl_session" array in SSL modules. Register instances of the IOHookProvider class in the core and use them to create specialized IOHook instances (OnConnect/OnAccept). Remove the OnHookIO hook, add a dynamic reference to ListenSocket that points to the hook provider (if any) to use for incoming connections on that socket. For outgoing connections modules still have to find the IOHookProvider they want to use themselves but instead of calling AddIOHook(hookprov), now they have to call IOHookProvider::OnConnect() after the connection has been established.
* | Improve UserManager::QuitUser() and related codeGravatar Attila Molnar2014-01-051-37/+11
| | | | | | | | | | | | - 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
* | Clean up CoreExceptionGravatar Attila Molnar2013-12-181-1/+1
| | | | | | | | | | - Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
* | Move stuff around a bit:Gravatar Peter Powell2013-12-151-0/+68
| | | | | | | | | | | | | | | | | | | | - Create FileSystem class: * Move ServerConfig::CleanFilename to FileSystem::GetFileName and rewrite. * Move ServerConfig::ExpandPath to FileSystem. * Move ServerConfig::FileExists to FileSystem. * Move ServerConfig::StartsWithWindowsDriveLetter to FileSystem. - Move FileReader to fileutils.cpp and fix documentation. - Move UserManager::DoBackgroundUserStuff to usermanager.cpp.
* | 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.