summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
AgeCommit message (Collapse)Author
2019-04-04Document OnUserInit properly and add OnUserPostInit.Peter Powell
2019-02-15Rename User::nping to nextping for consistency with lastping.Peter Powell
2019-02-15Refactor UserManager::DoBackgroundUserStuff().Peter Powell
2019-01-20Call the OnUserInit hook from earlier in UserManager::AddUser.Peter Powell
This fixes messages being lost when sending them to a user who has only just connected to the server.
2019-01-09Improve X-line text consistency.Matt Schatz
- 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>
2018-12-12Fix a crash when the core_oper module is not loaded.Peter Powell
2018-11-07Merge tag 'v2.0.27' into master.Peter Powell
2018-11-04Fix exposing the ban reason when an xline is found in the bancache.Peter Powell
2018-08-13Implement IRCv3 message tag support.Peter Powell
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2017-10-28Hide User#host and User#dhost and use accessors to modify them.Peter Powell
This removes the need to invalidate the cache after changing a user's hostname.
2016-08-24Update UserManager documentation and commentsAttila Molnar
2016-08-24Check for errors after calling IOHookProvider::OnAccept()Attila Molnar
2016-08-24Call IOHookProviders after the socket has been added to the SocketEngine in ↵Attila Molnar
UserManager::AddUser()
2016-08-24Add socket into the SocketEngine as soon as possible in UserManager::AddUser()Attila Molnar
2016-08-17Merge insp20Attila Molnar
2016-08-10Initialize more User and LocalUser fields using the init listAttila Molnar
2016-08-08Keep multiple IOHookProvider references in class ListenSocketAttila Molnar
This adds the <bind:hook> config option which works together with <bind:ssl>
2016-06-13Stop processing the new connection in UserManager::AddUser() when an ↵Attila Molnar
internal SocketEngine error happens and the user is quitted
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2015-11-03Remove UserManager::GarbageCollect()Attila Molnar
2015-11-03Move already sent id rollover handling and static LocalUser::already_sent_id ↵Attila Molnar
into UserManager
2015-11-03Add UserManager::NextAlreadySentId() and convert all code to use itAttila Molnar
2015-11-02Rewrite invite systemAttila Molnar
- 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
2015-05-22Remove dead code from UserManager::AddUser()Attila Molnar
2015-05-22Fix some oversightsAttila Molnar
2015-04-20Merge insp20Attila Molnar
2015-03-21Rebuild clone counts on rehashAdam
2015-02-05Merge pull request #971 from SaberUK/master+numeric-xlineAttila Molnar
Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
2015-01-24Implement User::WriteCommonQuit() using ForEachNeighbor() in UserManagerAttila Molnar
2015-01-24Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.Peter Powell
This is specified in RFC 1459 so we should probably use it.
2014-12-30Fix signon time of clients being off by dns_timeout secondsAttila Molnar
2014-08-04Fix off by one in ping timeout.md-5
Been bugging me that users ping timeout at 121 rather than 120 seconds by default.
2014-07-19Move and rename typedef LocalUserList to UserManager::LocalListAttila Molnar
2014-07-19Erase local users from UserManager::local_list in QuitUser()Attila Molnar
2014-06-13Change allocation of InspIRCd::BanCache to be physically part of the object ↵Attila Molnar
containing it
2014-06-13Pull in bancache.h from inspircd.hAttila Molnar
2014-06-07Relax fd bounds checkingAttila Molnar
We can cope with fds greater than SocketEngine::GetMaxFds() since 3752b3f59d5216d7dc6221a361efc76b9ad2273d
2014-03-17Rewrite clone counting to use one map instead of twoAttila Molnar
2014-03-15Change allocation of UserManager::clientlist to be physically part of the ↵Attila Molnar
object containing it
2014-03-14Change allocation of UserManager::uuidlist to be physically part of the ↵Attila Molnar
object containing it
2014-02-08Change all socketengine methods to be staticAttila Molnar
2014-02-04Fix ping timeout message seconds vs secondAdam
2014-01-25Destroy Memberships of a quitting user in QuitUser() instead of in cull()Attila Molnar
2014-01-24Convert LocalUserList to an intrusively linked listAttila Molnar
2014-01-22Split IOHook into IOHook and IOHookProviderAttila Molnar
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.
2014-01-05Improve UserManager::QuitUser() and related codeAttila Molnar
- 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
2013-12-18Clean up CoreExceptionAttila Molnar
- Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
2013-12-15Move stuff around a bit:Peter Powell
- 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.
2013-08-10Rename <options:moronbanner> to <options:xlinemessage>.Peter Powell
This name is more descriptive of what is actually is used for.
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam