3037 Commits

Author SHA1 Message Date
Sadie Powell
eb0f385c8d Deduplicate extban parsing. 2020-05-07 23:10:54 +01:00
Sadie Powell
37fbbd840c Add first class support for extbans.
This replaces the previous support which was pretty much a giant
hack and was not synchronised between servers.
2020-05-07 21:41:04 +01:00
Sadie Powell
a4586749b9 Fix an oversight introduced in commit 98e4ddfb21. 2020-05-07 21:15:34 +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
9ec5126eeb Replace the flags_required field with an enum. 2020-04-14 21:30:50 +01:00
Sadie Powell
bafb721640 Merge branch 'insp3' into master. 2020-04-14 19:57:10 +01:00
Sadie Powell
b382496d5c Alow modules to specify multiple syntax lines. 2020-04-14 16:41:31 +01:00
Matt Schatz
ccebfe6e63
Update user-facing text and comments of SSL to TLS. 2020-04-14 06:08:31 -06:00
Matt Schatz
8874c1c575 Update user-facing text and comments of SSL to TLS. 2020-04-14 06:08:31 -06:00
Sadie Powell
31897d26f2 Add the inspircd.org/standard-replies capability. 2020-04-13 18:36:21 +01:00
Sadie Powell
d99ee13f29 Mark all config parsing methods as const. 2020-04-12 06:04:42 +01:00
Sadie Powell
442101525b Rename ERR_CANTSENDTOUSER to match the channel numeric name. 2020-04-11 17:30:55 +01:00
Sadie Powell
277f2193f8 Remove the whowas header which was missed during the last merge. 2020-04-11 16:15:12 +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
a57621c74b Rename Module::flags to Module::properties.
This name is more descriptive and should create less warnings about
shadowing in existing modules.
2020-04-11 15:43:54 +01:00
Sadie Powell
1a800f7b3d Improve storage of module description, flags, and link data. 2020-04-11 13:54:05 +01:00
Sadie Powell
e1ed9b275f Merge branch 'insp3' into master. 2020-04-09 18:06:50 +01:00
Sadie Powell
ba30c383ba Fix Numerics::CannotSendTo sending the wrong numeric for users. 2020-04-06 20:34:44 +01:00
Sadie Powell
fe23e07f02 Squish the cmd_whowas header.
There's no reason for this to be in a header and it can't be used
by anything else.
2020-04-04 13:25:10 +01:00
Sadie Powell
cbe5b99314 Add the Numerics::CannotSendTo class and switch stuff to use it. 2020-04-04 12:31:14 +01:00
Sadie Powell
235a986964 Add support for sending a standard reply with no command name. 2020-04-02 20:55:53 +01:00
Sadie Powell
e19674d50a Document Module::Prioritize. 2020-04-01 14:32:02 +01:00
Sadie Powell
9ebda853f5 Fix various documentation and formatting issues. 2020-03-30 17:24:12 +01:00
Matt Schatz
998b407b2a Fix the signed-ness within ConvToNum char overloads.
It should be signed int with signed char and vice-versa.
Currently, anything over 127 as unsigned char would return 0.
2020-03-24 18:26:59 +00:00
Sadie Powell
c0703f66d7 Add a raw source/target PRIVMSG overload for sending a status msg. 2020-03-19 07:34:33 +00:00
Sadie Powell
b9acde9aaf Merge branch 'insp3' into master. 2020-03-18 13:51:23 +00:00
Sadie Powell
92d83e9103 Allow commands to override ERR_{NEEDSMOREPARAMS,NOTREGISTERED}. 2020-03-18 11:26:05 +00:00
Sadie Powell
1efc234a54 Implement support for the SERVLIST command. 2020-03-12 17:51:03 +00:00
Sadie Powell
906e44f687 Add a CapReference class for the message-tags capability. 2020-03-12 05:23:04 +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
600ea3b38f Clean up the documentation of the Command and SplitCommand classes. 2020-03-05 20:47:18 +00:00
Sadie Powell
1899ce4e21 Move user command stuff from CommandBase to Command. 2020-03-05 20:47:18 +00:00
Sadie Powell
9a0046a709 Allow modules to prevent a message from updating the idle time. 2020-03-05 20:47:18 +00:00
Sadie Powell
e861d5bfca Use "yes" instead of "true" in the example configs. 2020-02-21 20:37:00 +00:00
Sadie Powell
7bdd72f634 Merge branch 'insp3' into master. 2020-02-19 01:29:45 +00:00
Sadie Powell
d1a29d72b9 Bump the module ABI version. 2020-02-19 00:39:53 +00:00
Sadie Powell
895fbdece7 Fix a copy/paste error in IRCv3::Replies::Reply. 2020-02-19 00:39:10 +00:00
Sadie Powell
df17d47b6a Use ircd-hybrid's numerics for the "pending invites" list.
This fixes a conflict with the numerics used by the invite
exception mode.
2020-02-18 18:56:14 +00:00
Sadie Powell
2e0cc3684d Generalise XLine stats numerics using RPL_STATS from aircd. 2020-02-18 18:56:14 +00:00
Sadie Powell
24f1224f77 Add HasFd to EventHandler and switch code to use it. 2020-02-15 06:25:12 +00:00
Sadie Powell
7324001939 Add overloads of SendIfCap to the standard replies API. 2020-02-14 04:05:54 +00:00
Sadie Powell
84eb33d4c3 Move FindNickOnly to UserManager. 2020-02-09 19:24:26 +00:00
Sadie Powell
61070d4894 Move FindNick to UserManager. 2020-02-09 17:19:31 +00:00
Sadie Powell
1cdffcaad7 Move FindUUID to the UserManager class. 2020-02-09 17:16:07 +00:00
Sadie Powell
1315f79752 Initialise batchendmsg to NULL. 2020-02-06 11:36:32 +00:00