275 Commits

Author SHA1 Message Date
Sadie Powell
a63b6e16df Merge branch 'insp3' into master. 2020-12-21 16:40:52 +00:00
Sadie Powell
6cfabb0064 Hide the server name/desc better when <options:hideserver> is set. 2020-12-20 03:05:29 +00:00
Sadie Powell
a16bac5e05 Convert IRCv3::Replies::Reply#Send[IfCap] to variadic functions. 2020-11-12 12:41:43 +00:00
Sadie Powell
ba3dd9cedc Convert FOREACH_MOD_CUSTOM to a variadic function. 2020-11-10 23:14:21 +00:00
Sadie Powell
c7690513cd Convert FIRST_MOD_RESULT_CUSTOM to a variadic function. 2020-11-10 22:23:26 +00:00
Sadie Powell
579a17df38 Clean up a bunch of contructors and destructors. 2020-11-01 02:22:41 +00:00
Sadie Powell
e059f82249 Merge branch 'insp3' into master. 2020-07-29 12:13:45 +01:00
Sadie Powell
1d06a27acc Add a method for creating a regex pattern with included flags. 2020-07-29 10:42:31 +01:00
Sadie Powell
1621a84f96 Rewrite the regex system from scratch.
* Move everything to the Regex namespace:
  - Regex -> Regex::Pattern
  - RegexException -> Regex::Exception
  - RegexFactory -> Regex::Engine

* Add support for regex flags.
  - Regex::OPT_CASE_INSENSITIVE performs case-insensitive matching.

* Add the Regex::EngineReference class as a friendly wrapper around
  dynamic_reference_nocheck<Regex::Engine>.

* Add the Regex::SimpleEngine template class for automating the
  implementation of regex factory classes.

* Use std::shared_ptr for Regex::Pattern objects instead of making
  users manage memory manually.
2020-07-28 19:22:59 +01:00
Matt Schatz
30648e84ce Fix secure websocket users not being seen as secure.
Since a TLS (SSL) module will always be the last IOHook attached
to a socket, IsSSL() needs to ignore any Middle IOHooks that may
also be attached.
2020-07-27 09:38:11 +01:00
Sadie Powell
c3e88d6b53 Clean up ISUPPORT code and implement support for ISUPPORT updates. 2020-07-24 14:27:46 +01:00
Sadie Powell
4e3d97546a Pascalize Cap::set and rename Cap::get to IsEnabled. 2020-07-20 12:16:48 +01:00
Sadie Powell
dac5288954 Implement support for inverted extbans. 2020-05-07 23:45:52 +01:00
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
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
InspIRCd Robot
4f9abe96a4 Fixes by misspell-fixer 2020-04-21 00:52:12 -06:00
Sadie Powell
bafb721640 Merge branch 'insp3' into master. 2020-04-14 19:57:10 +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
e1ed9b275f Merge branch 'insp3' into master. 2020-04-09 18:06:50 +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
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
906e44f687 Add a CapReference class for the message-tags capability. 2020-03-12 05:23:04 +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
7bdd72f634 Merge branch 'insp3' into master. 2020-02-19 01:29:45 +00:00
Sadie Powell
895fbdece7 Fix a copy/paste error in IRCv3::Replies::Reply. 2020-02-19 00:39:10 +00:00
Sadie Powell
7324001939 Add overloads of SendIfCap to the standard replies API. 2020-02-14 04:05:54 +00:00
Sadie Powell
1315f79752 Initialise batchendmsg to NULL. 2020-02-06 11:36:32 +00:00
Sadie Powell
98e4ddfb21 Use C++11 inline initialisation for class members. 2020-02-06 11:25:42 +00:00
Sadie Powell
6da4987073 Merge branch 'insp3' into master. 2020-02-04 12:26:25 +00:00
Sadie Powell
60d4b6a3a7 Standard replies have been ratified. 2020-02-03 11:04:05 +00:00
InspIRCd Robot
8f62016f16 Update copyright headers. 2020-01-31 12:48:25 +00:00
Sadie Powell
b7382a9138 Use PushParam instead of PushParamRef in TagMessage#PushTarget.
This could be a temporary string so copy it instead of risking a
crash and/or dumping the contents of memory into messages.

This fixes a crash introduced last week.
2020-01-22 11:47:20 +00:00
Sadie Powell
1de6f5b4a9 Merge branch 'insp3' into master. 2020-01-17 12:36:09 +00:00
Sadie Powell
2bf0722dde Fix a GCC shadowing warning. 2020-01-16 17:37:51 +00:00
Sadie Powell
8df3d792bc Fix STATUSMSG tag messages not including the status in the target. 2020-01-16 15:23:40 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Sadie Powell
f8013e0899 Move ISupport logic out of the core and into core_info. 2020-01-05 14:41:06 +00:00
Sadie Powell
f856d5ab8a Merge branch 'insp3' into master. 2020-01-01 12:33:10 +01:00
Sadie Powell
56375392ba Update my name and email address. 2019-12-31 20:55:17 +01:00
Sadie Powell
034dad6ab0 Merge branch 'insp3' into master. 2019-12-08 17:47:07 +00:00
Peter Powell
bef13bcae3 Add some overloads of IRCv3::Replies::Reply#Send. 2019-11-25 14:10:42 +00:00
Sadie Powell
7b68936321 Merge branch 'insp3' into master. 2019-11-13 15:24:45 +00:00
Peter Powell
43fb2f9972 Add GetId() to the SQL::Provider class. 2019-11-13 12:58:18 +00:00
Peter Powell
51b9b4c9b4 Add GetTypeStr to the DNS API. 2019-10-13 22:05:19 +01:00
Peter Powell
65f74be719 Add the OnServerBurst hook and fix the docs for OnServerLink. 2019-09-23 13:18:21 +01:00