aboutsummaryrefslogtreecommitdiffstats
path: root/src/usermanager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-5/+5
|
* Replace hardcoded mode letters, part 3Gravatar attilamolnar2013-07-191-13/+0
| | | | This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
* Allow for skipping clone checking before DNS is complete.Gravatar Daniel Vassdal2013-07-021-1/+1
|
* Create IOHook interface (extracted from Module)Gravatar attilamolnar2013-06-071-0/+1
|
* Move code between usermanager.(cpp|h), clarify commentsGravatar attilamolnar2013-06-061-38/+14
| | | | Initialize clientlist and uuidlist in UserManager constructor
* Move DoBackgroundUserStuff() and AllModulesReportReady() into UserManagerGravatar attilamolnar2013-06-061-0/+11
|
* Merge insp20Gravatar attilamolnar2013-06-061-1/+7
|\
| * Initialize local_countGravatar attilamolnar2013-05-181-0/+5
| |
| * Workaround for std::list::size() having linear complexity on some ↵Gravatar attilamolnar2013-05-161-1/+2
| | | | | | | | implementations
* | Merge pull request #545 from SaberUK/master+logging-cleanupGravatar Attila Molnar2013-05-211-4/+4
|\ \ | | | | | | Clean up the logging system (part 1 of 2).
| * | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-4/+4
| | |
* | | Replaced vsnprintf with VAFORMAT pretty much everywhere.Gravatar Daniel Vassdal2013-05-181-7/+3
|/ /
* | Remove unused UserManager::ServerPrivmsgAll()Gravatar attilamolnar2013-05-181-24/+0
| |
* | Replace some C-isms with C++-isms.Gravatar Peter Powell2013-05-151-6/+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-2/+2
| | | | | | | | | | | | | | | | | | 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.
* | Merge insp20Gravatar attilamolnar2013-04-281-4/+4
|\|
| * Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected ↵Gravatar attilamolnar2013-04-211-3/+3
| | | | | | | | errors in m_callerid
| * Fix uuids getting truncated in the nick hash in UserManager::AddUser() if ↵Gravatar attilamolnar2013-04-191-1/+1
| | | | | | | | nickmax is < 9
* | Modularize DNSGravatar Adam2013-04-261-14/+0
| | | | | | | | | | | | The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this.
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-10/+10
| |
* | Stop recreating hashmaps every hour, move garbage collection code related to ↵Gravatar attilamolnar2013-04-041-0/+11
| | | | | | | | local users to UserManager
* | Make cmd_whowas act like a module, remove special handlingGravatar attilamolnar2013-04-041-1/+0
| |
* | Change User::GetIPString() to return const std::string&Gravatar attilamolnar2013-04-011-4/+4
|/
* Stop user initialization when the user is marked as quitting after OnSetUserIPGravatar attilamolnar2013-03-111-0/+3
|
* Make LocalUserList an std::listGravatar attilamolnar2012-11-291-1/+1
|
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-2/+2
|
* Reorder local user initialization stepsGravatar attilamolnar2012-11-291-0/+1
| | | | | | OnSetUserIP hook now runs after the user has a connect class and the g/k/z lines were checked (ip only, no host at that point) Fixes #360 reported by @JDowny Allows #336
* Simplify UserManager::AddLocalClone()/AddGlobalClone()Gravatar attilamolnar2012-11-241-13/+2
|
* Make better use of User::GetFullRealHost()Gravatar attilamolnar2012-10-211-4/+4
|