aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid copying a shared_ptr where not actually necessary.Gravatar Sadie Powell2022-12-011-4/+3
|
* Yet more stylistic fixes.Gravatar Sadie Powell2022-12-011-7/+8
|
* Fix GetSnomasks returning unregistered snomasks.Gravatar Sadie Powell2022-11-301-1/+1
|
* Move the oper statistics to core_oper and rewrite.Gravatar Sadie Powell2022-11-291-0/+36
| | | | | | | The numerics we used previously were not being used according to the RFC and every implementation has their own behaviour here which makes it hard for clients to do anything reasonable. Instead of this using the generic stats numeric makes a lot more sense.
* Refactor the internals of the oper system.Gravatar Sadie Powell2022-11-281-109/+157
| | | | | | | | | | | | | - Allow overriding privileges from the <class> blocks in the <type> and <oper> blocks. - Separate oper types from oper accounts in the code. This enables moving some core stuff out of the config tag later. - Merge the config tags together to make a synthetic tag that can have getXXX called on it instead of using getConfig and then converting it. - Move the details of Have*Permission into the oper type class. - Improve oper events to allow modules to easily hook into the oper system.
* Clean up the typedefs for OnBuildNeighborList.Gravatar Sadie Powell2022-10-291-3/+3
|
* Rename session registration to connection to avoid a semantic conflict.Gravatar Sadie Powell2022-10-291-14/+14
| | | | | | We previously referred to both session registration and user registration as "registration" which is confusing for users who aren't familiar with how IRC works.
* Use User::IsFullyConnected instead of checking for REG_ALL.Gravatar Sadie Powell2022-10-291-3/+3
|
* Rename User::age to User::nickchanged and fix the docs.Gravatar Sadie Powell2022-10-111-2/+2
|
* Mark User::Has{Command,Priv}Permission as const.Gravatar Sadie Powell2022-10-071-4/+4
|
* Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-4/+4
|
* Fix some warnings noticed by the readability-* clang-tidy checkers.Gravatar Sadie Powell2022-09-031-1/+1
|
* Rip out the extensible/user serialisation system.Gravatar Sadie Powell2022-09-011-8/+0
| | | | | | This was part of a failed attempt to implement zero downtime restarts in v3. This can be implemented in a better way but for now its just slowing down build times so lets kill it.
* Update some code that uses "endpoint" to use "socket address" instead.Gravatar Sadie Powell2022-09-011-4/+4
|
* Move aptosa/untosa into the sockaddrs union and add from/from_ip.Gravatar Sadie Powell2022-08-111-3/+1
| | | | | | | The struct will also now always be zero-initialized by default which removes the footgun which has happened previously where the union has been accessed before being initialized leading to it containing weird values.
* Rename OnSetUserIP to OnChangeRemoteAddress.Gravatar Sadie Powell2022-08-101-1/+1
|
* Rename SetClientIP to ChangeRemoteAddress.Gravatar Sadie Powell2022-08-101-4/+4
|
* Merge branch 'insp3' into master.Gravatar Sadie Powell2022-08-101-21/+1
|\
| * Fix some harmless debug messages when initializing remote users.Gravatar Sadie Powell2022-08-101-2/+2
| |
* | Modernize various minor legacy C++isms.Gravatar Sadie Powell2022-07-301-2/+2
| |
* | Remove some unnecessary getters in ConnectClass.Gravatar Sadie Powell2022-07-221-10/+11
| | | | | | | | All of these members are public anyway.
* | Switch from NULL to nullptr.Gravatar Sadie Powell2022-07-221-6/+6
| |
* | Make clientprotocol{msg,event} and numericbuilder non-default headers.Gravatar Sadie Powell2022-06-261-0/+1
| |
* | Move numerics to the source files where they are actually used.Gravatar Sadie Powell2022-06-261-0/+10
| |
* | Remove unnecessary arguments to On(Post)Oper.Gravatar Sadie Powell2022-05-071-2/+2
| | | | | | | | These are already accessible from the user object.
* | Rewrite logging calls to use the new APIs.Gravatar Sadie Powell2022-05-011-19/+19
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-04-291-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2022-04-281-1/+1
| |
* | Pack the mode set more efficiently and add support for numeric modes.Gravatar Sadie Powell2022-03-271-6/+4
| |
* | Add a typedef for the mode status bitset.Gravatar Sadie Powell2022-03-271-1/+1
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-03-271-1/+1
|\|
| * Fix real name formatting bleeding into IRC messages.Gravatar Sadie Powell2022-03-211-1/+1
| |
* | Add the type to the Extensible class.Gravatar Sadie Powell2022-01-311-1/+2
| |
* | Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-1/+1
| |
* | Add ConnectClass::Ptr as an alias for std::shared_ptr<ConnectClass>.Gravatar Sadie Powell2022-01-161-4/+4
| |
* | Make 005 dependent on the connect class.Gravatar Sadie Powell2022-01-161-0/+1
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-01-031-1/+0
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-12-301-1/+0
| |
* | Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-1/+2
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-12-141-0/+8
|\|
| * If a user has a unique username then include it in bans.Gravatar Sadie Powell2021-12-141-0/+6
| |
| * Sync uniqueusername from the connect class to the user.Gravatar Sadie Powell2021-12-141-0/+2
| | | | | | | | | | This is a massive hack for now but should be made to sync properly in v4 when we have extensibles that don't suck.
* | Move configuration of connect classes to the ConnectClass class.Gravatar Sadie Powell2021-11-241-0/+33
| |
* | Refactor the ClassTypes enum and move into ConnectClass.Gravatar Sadie Powell2021-11-241-4/+4
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-11-241-17/+22
|\|
| * Add the <connect:uniqueusername> option.Gravatar Sadie Powell2021-11-231-0/+2
| |
| * Document ConnectClass and reorder it to avoid unnecessary padding.Gravatar Sadie Powell2021-11-161-28/+28
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-11-051-4/+2
|\|
| * Add Server::GetPublicName(), fix not respecting <security:hideserver>.Gravatar Sadie Powell2021-10-251-4/+2
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-08-281-0/+1
|\|