aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-0/+1
|\
| * Remove swhois messages set in the oper block on deoper.Gravatar Peter Powell2018-04-091-0/+1
| | | | | | | | Closes #1240.
* | Optimize some behaviour in the core (#1476).Gravatar Dylan Frank2018-04-091-7/+10
| |
* | Improve performance under load of OnDataReady and remove C-isms.Gravatar systocrat2018-01-251-15/+38
| | | | | | | | | | | | | | Re-use variables initialized within loop, const-ify config variables accessed repeatedly, remove eol_found label. Merges #1451.
* | Remove duplicated code in LocalUser::GetServerPort().Gravatar Peter Powell2018-01-201-8/+1
| |
* | Fix User::ChangeRealHost() to change the real host properly.Gravatar Peter Powell2017-12-231-1/+13
| |
* | Rename <security:hidewhois> to <security:hideserver>.Gravatar Peter Powell2017-12-221-4/+4
| | | | | | | | | | The previous name was horrible and didn't describe what the setting actually does.
* | Inherit non-core connect class settings properly.Gravatar Peter Powell2017-11-201-1/+26
| | | | | | | | Based partially on a patch by Attila.
* | Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-2/+2
| |
* | Add a class which encapsulates the concept of token lists.Gravatar Peter Powell2017-11-131-27/+6
| |
* | Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-2/+1
|\|
| * Use InvalidateCache in the sockaddrs overload of OnSetClientIP.Gravatar Peter Powell2017-11-051-2/+1
| | | | | | | | This was done to the string variant in d3b82b2f7f.
* | Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-9/+43
| | | | | | | | | | This removes the need to invalidate the cache after changing a user's hostname.
* | Change SetClientIP to take a C++ string instead of a char array.Gravatar Peter Powell2017-10-271-4/+4
| |
* | Clean up the initialization of ConnectClass and ServerConfig.Gravatar attilamolnar2017-10-151-6/+4
| |
* | Fix RPL_SERVERVERSION treating the modes as a single parameter.Gravatar Peter Powell2017-10-041-2/+2
| |
* | Get rid of irc::sockets::satoap().Gravatar Peter Powell2017-09-121-2/+1
| | | | | | | | | | This function is being misused in all but one scenario. It isn't really worth keeping IMO.
* | Move <dns:timeout> out of the core.Gravatar Peter Powell2017-09-031-1/+1
| |
* | Make the build reproducible by removing time related macros.Gravatar Peter Powell2017-08-261-1/+1
| | | | | | | | | | | | | | | | The compile time on boot is not accurate as it will only change when the translation unit containing it is edited. The startup time in RPL_SERVERCREATED is a lot more useful than the compilation time. ngIRCd also implements this behaviour.
* | Merge v2.0.23 and v2.0.24 into master.Gravatar Peter Powell2017-07-091-2/+2
|\|
| * Merge pull request #1230 from SaberUK/insp20+ipcacheGravatar Attila Molnar2017-05-171-2/+2
| |\ | | | | | | [2.0] Invalidate the caches properly when User::SetClientIP is called.
| | * Invalidate the caches properly when User::SetClientIP is called.Gravatar Peter Powell2016-09-251-2/+2
| | |
| * | Fix users receiving a QUIT with themselves as source when host cycling in ↵Gravatar Attila Molnar2016-12-051-0/+2
| |/ | | | | | | | | | | | | | | certain cases The OnBuildNeighborList handler in m_auditorium can add the cycling user to the exceptions as an always send exception. To fix, remove the user from the exceptions before processing them. Reported by @genius3000 on IRC
| * Replace dodgy use of const char* and memcpy with std::string.Gravatar Peter Powell2014-10-131-14/+7
| | | | | | | | This was backported from commit e01df63 in master.
* | Clean up User::FormatModes(), rename to GetModeLetters()Gravatar Attila Molnar2016-12-301-15/+15
| | | | | | | | Prefix the returned string with '+'
* | Make all User::IsModeSet() methods const, accept const ModeHandlerGravatar Attila Molnar2016-12-301-1/+1
| |
* | Deduplicate nickname overruling codeGravatar Attila Molnar2016-12-301-5/+12
| | | | | | | | Create LocalUser::OverruleNick(), call it from User::ChangeNick() and the UID handler in spanningtree
* | Allow classes to take a port range.Gravatar Peter Powell2016-10-251-6/+7
| |
* | Pass the ModeHandler to User::HasModePermission()Gravatar Attila Molnar2016-08-301-3/+4
| | | | | | | | Mark the method as const
* | Convert ModeHandler::GetNumParams() to NeedsParam() that returns a boolGravatar Attila Molnar2016-08-291-1/+1
| |
* | Initialize more User and LocalUser fields using the init listGravatar Attila Molnar2016-08-101-8/+12
| |
* | Update style of initializer lists in User and LocalUser constructorsGravatar Attila Molnar2016-08-101-4/+12
| |
* | Remove User::SendText() and overrides completelyGravatar Attila Molnar2016-03-301-21/+0
| |
* | Make User::WriteRemoteNumeric() virtual, implement it in ↵Gravatar Attila Molnar2016-03-291-2/+1
| | | | | | | | SpanningTree::RemoteUser
* | Handle numerics with a source other than the local server in ↵Gravatar Attila Molnar2016-03-291-1/+2
| | | | | | | | User::WriteNumeric()
* | Remove now unused overload of User::SendText()Gravatar Attila Molnar2016-03-221-17/+0
| |
* | Add User::WriteRemoteNotice()Gravatar Attila Molnar2016-03-011-0/+10
| | | | | | | | Sends a NOTICE from the local server to the user which can be local or remote
* | Remove unnecessary std::string::c_str() callsGravatar Attila Molnar2016-02-251-1/+1
| |
* | Add User::WriteRemoteNumeric() and switch code using SendText() to send ↵Gravatar Attila Molnar2016-02-251-0/+6
| | | | | | | | numerics to it
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-20/+11
| | | | | | | | parameters
* | Add Numeric::NumericGravatar Attila Molnar2016-02-251-0/+16
| |
* | Do not insert FakeUsers into UserManager::uuidlistGravatar Attila Molnar2015-12-071-4/+7
| | | | | | | | Inserting them causes FindUUID() and FindNick() to return server users which is not what modules want
* | Move already sent id rollover handling and static LocalUser::already_sent_id ↵Gravatar Attila Molnar2015-11-031-2/+0
| | | | | | | | into UserManager
* | Add UserManager::NextAlreadySentId() and convert all code to use itGravatar Attila Molnar2015-11-031-1/+1
| |
* | Rewrite invite systemGravatar Attila Molnar2015-11-021-23/+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
* | Fix oversights in substr() conversionGravatar Attila Molnar2015-02-271-1/+1
| | | | | | | | Thanks to @StevenVanAcker for reporting and testing this
* | Remove needless checks from User::WriteCommon()/WriteCommonRaw()Gravatar Attila Molnar2015-01-241-6/+0
| |
* | Implement User::WriteCommonRaw() using ForEachNeighbor()Gravatar Attila Molnar2015-01-241-33/+21
| |
* | Implement User::WriteCommonQuit() using ForEachNeighbor() in UserManagerGravatar Attila Molnar2015-01-241-40/+0
| |
* | Add User::ForEachNeighbor()Gravatar Attila Molnar2015-01-241-0/+53
| |