14216 Commits

Author SHA1 Message Date
Sadie Powell
7324001939 Add overloads of SendIfCap to the standard replies API. 2020-02-14 04:05:54 +00:00
Sadie Powell
98b470674b Only register the sts capability when we have a valid config.
This avoids announcing a bare sts cap when the config is wrong.
2020-02-14 03:20:25 +00:00
Sadie Powell
8d5adb667f Clean up ModuleDLLManager from the Module::cull() method.
This avoids a leak which happens in some rare circumstances.
2020-02-14 01:36:35 +00:00
Sadie Powell
c0f75dd4f5 Fix GitHub Actions on macOS for real this time. 2020-02-13 22:47:23 +00:00
Sadie Powell
0d33e174a4 Update modules.conf.example to use the new --enable-extras syntax. 2020-02-13 22:22:33 +00:00
Sadie Powell
5ea4b66f68 Update the vendored http_parser library to v2.9.3. 2020-02-13 03:00:34 +00:00
Sadie Powell
0c34d28447 Tell people to run make with the number of CPU cores plus 1.
This results in faster builds as there's always one job waiting.
2020-02-10 11:59:15 +00:00
Sadie Powell
b30c385ce5 Update the pull request template for recent module changes. 2020-02-10 01:56:56 +00:00
Akinwale Ariwodola
d0eb201d10 Remove a mistakenly repeated word in the README (#1753). 2020-02-10 01:54:34 +00:00
Sadie Powell
1315f79752 Initialise batchendmsg to NULL. 2020-02-06 11:36:32 +00:00
Sadie Powell
0c5b85df8c Include the ABI version with the incompatible module error message. 2020-02-04 11:56:00 +00:00
Sadie Powell
60d4b6a3a7 Standard replies have been ratified. 2020-02-03 11:04:05 +00:00
Wade Cline
74fa2e5b3d Clean special chars from module conf example 2020-02-03 09:03:24 +00:00
Sadie Powell
aed712ba8e Make loading modules considerably more robust and user friendly. 2020-02-02 20:32:49 +00:00
Sadie Powell
fda43fc0ff Fix GitHub Actions building on macOS.
For some reason Homebrew is imploding on upgrade and this is making
our builds fail. Let's not upgrade for now.
2020-02-02 17:43:58 +00:00
Sadie Powell
c2769b58d2 Fix being able to see the modes of private/secret channels. 2020-02-02 15:52:41 +00:00
Sadie Powell
fd6b8bd7bd Release v3.5.0. v3.5.0 2020-01-31 12:49:58 +00:00
InspIRCd Robot
8f62016f16 Update copyright headers. 2020-01-31 12:48:25 +00:00
Sadie Powell
4ce16000d3 Bump the ABI version. 2020-01-31 12:42:54 +00:00
Sadie Powell
8eeb48ab21 The labeled response spec is no longer a draft. 2020-01-31 10:37:14 +00:00
Sadie Powell
823f5b3ee0 Fix the chanhistory module not storing CTCP ACTIONs. 2020-01-31 10:32:28 +00:00
Sadie Powell
ef61e7b19c Use the default OnParameterMissing in ModeUserServerNoticeMask. 2020-01-30 14:41:25 +00:00
Sadie Powell
4edae17902 The KNOCK command is broadcast so we should only send local notices.
See also: #1749.
2020-01-29 14:15:23 +00:00
Sadie Powell
6597fe5d4f Add Channel::WriteRemoteNotice and revert WriteNotice changes.
This is a partial reversion of 687778b72e.

See also: #1749.
2020-01-29 12:00:32 +00:00
Sadie Powell
64df216836 Fix "control reaches end of non-void function" warning.
This is harmless because it will always be set to one of the items
in the TargetType enum.
2020-01-28 18:56:46 +00:00
Sadie Powell
c2a3321540 Implement support for the IRCv3 labeled-response specification. 2020-01-28 16:29:06 +00:00
Sadie Powell
0256a41f6f Add a vendor cap which rejects any attempts to enable it.
This is similar to the oragono.io/nope capability only instead of
killing the connection it just rejects the request. This should be
less intrusive for users.
2020-01-28 14:31:40 +00:00
Sadie Powell
868dc21ffb Remove the preceding - in messages sent by opermotd and showfile. 2020-01-24 21:14:35 +00:00
Sadie Powell
3620749d7d dccallow: use IsCTCP instead of parsing the message manually. 2020-01-23 19:25:37 +00:00
Sadie Powell
5612c4314e dccallow: Use irc::equals for messages received over IRC. 2020-01-23 19:24:26 +00:00
Sadie Powell
a697104a8c Add a method for getting the name of a MessageTarget.
This fixes a minor bug in the filter module where the target would
be blank in messages when a server-targetted message matches a
filter.
2020-01-23 17:22: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
b759870d74 Add an event for when a command is blocked before execution. 2020-01-22 10:22:02 +00:00
Sadie Powell
ec66b397b0 Remove unnecessary copies of CommandBase::Params in LoopCall. 2020-01-22 10:13:06 +00:00
Sadie Powell
a8b8cfe99e Make the dynref bool operator constant. 2020-01-22 10:13:06 +00:00
Sadie Powell
c83a670c19 Tweak the default motd/opermotd slightly.
Also, remove the - at the start of the MOTD field. This is cargo
culted from irc2 and theres no real reason to actually do this.
2020-01-22 10:13:01 +00:00
Sadie Powell
62483525bb Move DeleteZero to stdalgo::delete_zero. 2020-01-19 15:41:23 +00:00
Sadie Powell
5d1ff2971a Use irc::equals instead of transforming to upper case in CAP. 2020-01-18 20:48:53 +00:00
Sadie Powell
f1e02b3c0a Use case insensitive comparisons in getBool. 2020-01-18 20:39:12 +00:00
Sadie Powell
87471ab92d Add a function for showing a command whilst executing it. 2020-01-18 14:25:03 +00:00
Sadie Powell
04b5090a2f Disable auto extras when TEST_BUILD_MODULES is set in test-build. 2020-01-18 13:32:41 +00:00
Sadie Powell
2c33a3027b Improve manually enabling extra modules.
- Allow modules to be specified without their prefix and extensions
  in --{disable,enable}-extras.
- Allow modules to be space delimited in --{disable,enable}-extras.
2020-01-18 13:27:24 +00:00
Sadie Powell
47fe6c5540 Add a tool for updating the vendored libaries. 2020-01-17 23:37:32 +00:00
Sadie Powell
1158a67676 Improve the DNS cache expiration log message.
Instead of constantly spamming the log file only show the message
when an entry is actually expired and show how many entries were
expired.
2020-01-17 16:13:32 +00:00
Sadie Powell
2e91d9b2e1 Migrate from Travis CI to GitHub Actions.
This brings shiny new GitHub integrations as well as allowing us to
bring back the macOS builds which were disabled because of the very
broken Travis CI macOS infrastructure.
2020-01-17 15:35:20 +00:00
Sadie Powell
ca452cca52 Fix a harmless warning in the ssl_mbedtls module. 2020-01-17 15:35:20 +00:00
Sadie Powell
19cdd93861 Fix Perl tools not using the correct directory name in 'use lib'. 2020-01-17 15:35:20 +00:00
Sadie Powell
5ae6524522 Fix the ordering of custom event handlers.
Closes #1742.
2020-01-17 11:27:31 +00:00
Sadie Powell
72286cca74 Use irc::equals instead of strcasecmp where appropriate. 2020-01-17 10:55:18 +00:00
Sadie Powell
2bf0722dde Fix a GCC shadowing warning. 2020-01-16 17:37:51 +00:00