aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Expand)AuthorAgeFilesLines
* If a user has an oper connect class then reset it when de-opering.Gravatar Sadie Powell2024-02-191-1/+4
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-12-221-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2023-12-221-1/+1
* | Update usages of stdalgo::string::equalsci to use insp::equalsci.Gravatar Sadie Powell2023-08-111-7/+7
* | Move stdalgo::string::join to utility/string and templatise separator.Gravatar Sadie Powell2023-08-111-1/+2
* | Rework how away state is stored internally.•••This will be necessary for implementing pre-away as well as some changes for WATCH compatibility with Unreal. Gravatar Sadie Powell2023-08-041-0/+6
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2023-07-221-0/+3
|\|
| * Fix a rare case where the hostname cache was not invalidated.Gravatar Sadie Powell2023-07-171-0/+3
* | Normalise the case of ServerStats.Gravatar Sadie Powell2023-07-131-3/+3
* | Minor improvements to cull logging.•••- CULLLIST has been renamed to CULL which is easier to spell. - Some log messages have been improved slightly. Gravatar Sadie Powell2023-07-051-1/+1
* | Refactor Change{Displayed,Real}Host to match other Change* methods.Gravatar Sadie Powell2023-06-301-10/+10
* | Remove OnPreChange{Host,RealName} events and deboolify methods.•••These have not ever been used as far as I can see. Gravatar Sadie Powell2023-06-291-27/+7
* | Retain the "real" username properly like we do for hostnames.•••This introduces the concept of a real username. This value comes from either the initial USER message or from an ident lookup. Doing this allows us to use it for bans through vidents and cloaking web client users using their remote username. While changing this I also changed all of the uses of "ident" other than RFC 1413 lookups and some compatibility cases to refer to usernames as user(name) instead of ident. Our use of ident in these places was incorrect as that only refers to the RFC 1413 response and is not commonly used in the way we used it by any other IRC server implementations. Gravatar Sadie Powell2023-06-291-15/+55
* | Inline various User methods.Gravatar Sadie Powell2023-06-251-20/+0
* | Avoid using too much memory for storing user data.Gravatar Sadie Powell2023-06-251-0/+6
* | Make internal bug messages more consistent.Gravatar Sadie Powell2023-06-121-1/+1
* | Log when encountering an erroneous user cull without a quit.Gravatar Sadie Powell2023-06-121-0/+4
* | Remove unnecessary prefix from bancache log messages.Gravatar Sadie Powell2023-06-041-1/+1
* | IPv6 addresses should be partially expanded with '0' not 0x0.Gravatar Sadie Powell2023-04-291-1/+1
* | Fix a copy/paste error in GetUserAddress.Gravatar Sadie Powell2023-04-291-1/+1
* | Fix a segfault when sending data to a user without a connect class.Gravatar Sadie Powell2023-03-241-2/+3
* | Allow modules to provide an error for when a class doesn't match.Gravatar Sadie Powell2023-03-241-1/+5
* | Refactor the password checking API.•••- Rename from (On)PassCompare to (On)CheckPassword. - Fix the order of the arguments to be password, hash, value. This makes more sense than what it was previously. - Fix the code documentation to not be complete nonsense and not reference ancient outdated APIs. Gravatar Sadie Powell2023-02-281-1/+1
* | Make reading the core config less of a mess.Gravatar Sadie Powell2023-01-271-2/+2
* | Replace getInt/getUInt/getFloat with type safe templated functions.Gravatar Sadie Powell2023-01-251-9/+9
* | Refactor the caching methods in User and rename to make more sense.Gravatar Sadie Powell2023-01-241-62/+98
* | Convert log calls to use fmtlib format stringsGravatar Sadie Powell2023-01-241-16/+16
* | Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.Gravatar Sadie Powell2023-01-231-5/+5
* | Convert various enums to strongly typed scoped enums.Gravatar Sadie Powell2023-01-221-9/+9
* | Fix calling various static functions through a type instance.Gravatar Sadie Powell2023-01-111-1/+1
* | Qualify auto correctly in all cases.Gravatar Sadie Powell2023-01-101-4/+4
* | Avoid copying shared_ptr<ConfigTag> when not necessary.Gravatar Sadie Powell2023-01-101-3/+3
* | Rework how users are assigned to connect classes.•••- Move core connect class checks and <performance:clonesonconnect> to the core_user module. - Add pre-change and post-change events for when a connect class changes. - Split explicit class changing out into its own method. - Remove the need to almost always call CheckClass after SetClass. - Add use counting to the connect class instead of relying on the shared_ptr use count. Gravatar Sadie Powell2023-01-081-178/+69
* | Fix CanUseSnomask checking the wrong snomask index.•••We reuse the mode index packing here to avoid duplication. Gravatar Sadie Powell2023-01-021-1/+1
* | Fix getting the full snomask and mode lists.Gravatar Sadie Powell2023-01-021-7/+12
* | Get rid of the virtual Has*Permission methods.•••These are no longer needed now we store privs for the remote oper. Gravatar Sadie Powell2023-01-021-46/+0
* | Allow getting all of the oper command/mode/snomask privs.Gravatar Sadie Powell2023-01-021-5/+8
* | Add some useful aliases to OperType.Gravatar Sadie Powell2023-01-021-3/+3
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-1/+0
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+0
| * Avoid sending an +o mode change when the mode isn't available.•••This is generally fine but may cause problems if an oper unloads the core_oper module. Gravatar Sadie Powell2022-11-281-1/+1
* | Refactor SocketEngine slightly.•••- Remove pointless shutdown() wrapper. - Remove pointless bounds checking function. - Make Bind and Listen take an EventHandler instead of a fd. - Add nullability attributes to every method. Gravatar Sadie Powell2022-12-251-1/+1
* | Pass the client/server sockaddr around as a ref instead of a ptr.Gravatar Sadie Powell2022-12-251-3/+3
* | Use in_port_t instead of int/unsigned int/long.Gravatar Sadie Powell2022-12-181-3/+6
* | Rework the levels things are logged at to make more sense.Gravatar Sadie Powell2022-12-181-1/+1
* | Fix conflicting with a predefined value on Windows.•••STRICT is already defined on Windows so we'll need to do something else here. Thanks Microsoft. Gravatar Sadie Powell2022-12-111-7/+7
* | Move <oper:autologin> from m_sslinfo to core_oper and rework.•••- Promote autologin to a core concept with visibility in events. - Replace the binary yes/no value with strict/relaxed/never. This intentionally breaks v3 oper block autologin as admins will need to review them for the security implications of the new behaviour. Gravatar Sadie Powell2022-12-111-4/+28
* | Move password checking from core_oper into OperAccount.Gravatar Sadie Powell2022-12-101-0/+6
* | Remove the unused Extensible* parameter to PassCompare/OnPassCompare.Gravatar Sadie Powell2022-12-101-1/+1
* | Allow modules to ignore any checks from OnPreOperLogin.Gravatar Sadie Powell2022-12-101-2/+2