Sadie Powell
7a712456f1
Merge branch 'insp3' into master.
2021-05-14 16:54:33 +01:00
InspIRCd Robot
e94b673532
Update copyright headers.
2021-05-14 14:48:39 +01:00
Sadie Powell
3ca912ad71
Merge branch 'insp3' into master.
2021-05-11 04:07:45 +01:00
Sadie Powell
b4a174ee9c
Fix a bunch of weird indentation and spacing issues.
2021-04-27 16:41:14 +01:00
Sadie Powell
ba6332b8ec
Rip out the SwapInternals method.
...
This never really worked correctly and will now be replaced with
something better.
2021-04-19 00:14:53 +01:00
Sadie Powell
d8019f87b3
Fix various uses of the _t suffix which is reserved by POSIX.
2021-04-17 22:44:13 +01:00
Sadie Powell
7d84e4900f
Fix a ton of pedantic compiler warnings.
2021-04-04 23:42:15 +01:00
Sadie Powell
0194f799b9
Merge branch 'insp3' into master.
2021-03-31 15:04:15 +01:00
Sadie Powell
952ee5cc60
Fix various documentation comments.
2021-03-31 10:51:51 +01:00
Sadie Powell
f602febac5
Merge branch 'insp3' into master.
2021-03-30 10:12:41 +01:00
Sadie Powell
8c3c4f8e82
Add support for matching multiple hosts in <connect:{allow,deny}>.
2021-03-30 09:02:47 +01:00
Sadie Powell
1e1cf527d2
Merge branch 'insp3' into master.
2021-03-05 02:32:35 +00:00
InspIRCd Robot
7b1ab06a95
Update copyright headers.
2021-03-05 02:16:11 +00:00
Sadie Powell
4e488cb54d
Refactor classbase/CullResult into Cullable/Cullable::Result.
2021-03-02 05:56:56 +00:00
Sadie Powell
2b2d37ff50
Make MyClass private and move everything to GetClass.
2021-01-31 14:00:34 +00:00
Sadie Powell
14eed26666
Move sendmsglist to above the functions in LocalUser.
2021-01-31 13:50:28 +00:00
Sadie Powell
8240a06ed3
Convert UserType to be a uint8_t and move inside User.
2020-11-10 18:44:05 +00:00
Sadie Powell
89a21202de
Convert ConnectClass from reference<> to std::shared_ptr<>.
2020-11-03 19:54:13 +00:00
Sadie Powell
579a17df38
Clean up a bunch of contructors and destructors.
2020-11-01 02:22:41 +00:00
Sadie Powell
1b181b42b8
Convert ConfigTag from reference<> to std::shared_ptr<>.
2020-10-31 23:21:15 +00:00
Sadie Powell
4176261edf
Convert OperInfo from reference<> to std::shared_ptr<>.
2020-10-31 16:55:18 +00:00
Sadie Powell
f73d200a1e
Split OnSetEndPoint into two events.
2020-07-20 07:21:16 +01:00
Sadie Powell
b755d2a778
Merge branch 'insp3' into master.
2020-05-05 22:03:14 +01:00
InspIRCd Robot
44489ddf7e
Update copyright headers.
2020-04-24 10:23:47 +01:00
Sadie Powell
119907f238
Revert "Convert UserType to an enum class".
...
There's a bug in GCC with bitfields and enum class.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242
This reverts commit 44834a66a7e92c8979ae16421286c581a9cffbe9.
2020-04-21 11:40:26 +01:00
InspIRCd Robot
4f9abe96a4
Fixes by misspell-fixer
2020-04-21 00:52:12 -06:00
Sadie Powell
44834a66a7
Convert UserType to an enum class.
2020-04-21 04:17:14 +01:00
Matt Schatz
3ed1cc27b1
Switch User::usertype back to an unsigned int.
...
Leaving it up to the compiler to set the underlying type of the enum
can result in this being a signed int. This variable will not work
as intended as a 2 bit signed int.
This fixes an issue with the Windows build(s) where a server trying
to link would fail with "Protocol violation: Invalid source".
2020-04-19 05:01:04 -06:00
Sadie Powell
bafb721640
Merge branch 'insp3' into master.
2020-04-14 19:57:10 +01:00
Sadie Powell
6fcbfc0723
Add support for limiting what opers can subscribe to snomasks.
2020-04-11 15:44:51 +01:00
Sadie Powell
e1ed9b275f
Merge branch 'insp3' into master.
2020-04-09 18:06:50 +01:00
Sadie Powell
9ebda853f5
Fix various documentation and formatting issues.
2020-03-30 17:24:12 +01:00
Sadie Powell
b9acde9aaf
Merge branch 'insp3' into master.
2020-03-18 13:51:23 +00:00
Sadie Powell
0a67b8861a
Warn if the server config contains an unhashed password.
...
This will be made a hard failure in v4.
2020-03-11 15:06:19 +00:00
Sadie Powell
98e4ddfb21
Use C++11 inline initialisation for class members.
2020-02-06 11:25:42 +00:00
Sadie Powell
1de6f5b4a9
Merge branch 'insp3' into master.
2020-01-17 12:36:09 +00:00
InspIRCd Robot
aa692dc103
Update copyright headers.
2020-01-11 22:14:43 +00:00
Sadie Powell
7b68936321
Merge branch 'insp3' into master.
2019-11-13 15:24:45 +00:00
Peter Powell
d0f802e30c
Implement serialisation of users.
...
This allows for various things which will be coming in the future.
e.g. Transferring users to another server on upgrade.
2019-10-14 11:03:03 +01:00
Peter Powell
554308f654
Add null pointer checks to IS_{LOCAL,REMOTE,SERVER}.
...
I don't know of any places this causes issues but its better to be
safe than sorry.
2019-09-29 19:52:05 +01:00
Peter Powell
a4305d8f3c
Add the server id to the Server class.
2019-09-23 13:18:14 +01:00
Sadie Powell
ada6646b65
Merge branch 'insp3' into master.
2019-07-27 19:12:29 +01:00
Peter Powell
5f387071d3
Add a method for swapping user I/O handlers.
2019-07-21 16:57:19 +01:00
Sadie Powell
1d5b18de82
Merge branch 'insp3' into master.
2019-05-15 15:26:55 +01:00
Peter Powell
2cd6efcc64
Rename HasPermission to HasCommandPermission.
2019-04-19 10:05:06 +01:00
Peter Powell
21f0718c4a
Remove the 'noisy' mode for HasPrivPermission.
...
This was only used in one place.
2019-04-19 00:39:57 +01:00
Sadie Powell
e75f03d32f
Merge branch 'insp3' into master.
2019-02-15 16:24:02 +00:00
Peter Powell
a7fc2fe0dc
Replace GetServerPort() with server_sa.port().
2019-02-15 11:35:25 +00:00
Peter Powell
168ee80490
Rename User::nping to nextping for consistency with lastping.
2019-02-15 11:35:25 +00:00
Sadie Powell
0fab643858
Convert repetitive functions to use C++11 variadic templates.
2019-01-25 15:17:37 +00:00