14382 Commits

Author SHA1 Message Date
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
5c6b063067 Don't filter mass-messages sent by server operators.
This matches the behaviour of the censor module.
2020-04-04 12:31:14 +01:00
Sadie Powell
cbe5b99314 Add the Numerics::CannotSendTo class and switch stuff to use it. 2020-04-04 12:31:14 +01:00
Matt Schatz
cad2f3f979
Ignore clients on ulined servers when counting invisible users.
This is in addition to 4cc992f.
2020-04-04 02:58:59 -06: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
26ddc3942d Add constants for the uninvite numerics. 2020-04-02 20:53:23 +01:00
Sadie Powell
e75b2f92b5 Fix the log message in the disable module.
Modes are set and unset not executed.
2020-04-02 11:36:25 +01:00
Sadie Powell
339826812b Clear the entire DNS cache on rehash. 2020-04-01 20:35:26 +01:00
Sadie Powell
e19674d50a Document Module::Prioritize. 2020-04-01 14:32:02 +01:00
Sadie Powell
bec70fca51 Add a comment for packagers who delete the --{uid,gid} checks. 2020-03-31 17:33:55 +01:00
Matt Schatz
a5cb6b99fb
Add back the prefix on a server target message.
The prefix is dropped when building the message. We add it back here
so that the remote servers can recognize it as a server target.
2020-03-31 08:41:04 -06:00
Sadie Powell
29addc0799 Fix clock skip warnings being inverted. 2020-03-30 23:41:46 +01:00
Sadie Powell
25052ccef3 Make showing the channel modes in /LIST configurable. 2020-03-30 23:38:42 +01:00
Sadie Powell
9ebda853f5 Fix various documentation and formatting issues. 2020-03-30 17:24:12 +01:00
Sadie Powell
3f3da905b9 Add support for the servers/ignore-shun privilege. 2020-03-29 12:08:19 +01:00
Sadie Powell
92732be632 Include ADMIN and OPER in the default for <shun:enabledcmds>. 2020-03-29 11:58:09 +01:00
Sadie Powell
5fff3610d5 Clean up the parsing logic for <shun:enabledcmds>. 2020-03-29 11:57:27 +01:00
Matt Schatz
ac3c8eb9e6
Correct a typo in the example config. 2020-03-28 23:28:53 -06:00
Sadie Powell
2ff5d46dc3 Fix expanding module names. 2020-03-27 14:25:09 +00:00
Sadie Powell
13d6390aec Update the credits.
- Move Attila to former developers (RIP).
- Move genius3000 to core developers.
- Add Robby to contributors.
- Add prawnsalad to thanks.
2020-03-27 13:39:37 +00:00
Sadie Powell
0412648fc1 Alphabetically sort names in the credits. 2020-03-27 13:33:50 +00:00
Sadie Powell
ceed9acdee Improve the issue templates slightly. 2020-03-25 14:28:01 +00:00
Matt Schatz
695fb03219 Only send a local X-line SNOTICE.
Spanningtree sends a local SNOTICE to 'X' when adding
a line. No need to send a global SNOTICE from here.
2020-03-25 02:38:34 +00: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
Matt Schatz
7a9e579b49 Correct a module name typo. 2020-03-24 18:19:20 +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
92d83e9103 Allow commands to override ERR_{NEEDSMOREPARAMS,NOTREGISTERED}. 2020-03-18 11:26:05 +00:00
Sadie Powell
e91a017aca Force people to use an issue template. 2020-03-13 07:58:34 +00:00
Sadie Powell
176acbfdb0 Move CHANMODES to core_mode and add USERMODES. 2020-03-12 18:32:35 +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
Joel Sing
1a7b4bac42
Improve logging for the m_ldap and m_ldapauth modules (#1757).
Currently, it is difficult to diagnose LDAP authentication failures,
since the logs do not provide sufficient information about what is
actually being queried and what actually failed.

This increases logging details so that information about the LDAP query
is included, for example:

  Fri Mar 06 2020 08:02:59 ANNOUNCEMENT: Error binding as manager to LDAP
  server: Invalid credentials (bind dn=cn=adminz,dc=nodomain)

Rather than:

  Fri Mar 06 2020 08:02:59 ANNOUNCEMENT: Error binding as manager to LDAP
  server: Invalid credentials

Same with connection logging:

  Fri Mar 06 2020 07:59:53 CONNECT: Forbidden connection from
  jsing!jsing@192.168.200.1 (Invalid credentials (bind
  dn=uid=jsing,dc=nodomain))

  Fri Mar 06 2020 08:01:19 CONNECT: Successful connection from
  jsing!jsing@192.168.200.1 (dn=uid=jsing,dc=nodomain)
2020-03-12 05:20:46 +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
55882c39f1 Fix detection of the "plaintext" pseudo-hash being case sensitive. 2020-03-11 13:58:45 +00:00
Sadie Powell
feaceb2b03 Fix unnecessary inlining in command handler constructors. 2020-03-09 22:50:48 +00:00
Sadie Powell
0643ce085c Fix not assigning bits to capabilities correctly.
This makes it correctly throw when the capability limit is reached
and allows up to 64 capabilities to be created instead of 32.
2020-03-09 13:57:06 +00:00
Sadie Powell
bfefabfb0f Implement support for multi-line CAP responses. 2020-03-09 13:44:07 +00:00
Sadie Powell
32abc31869 Fix <connect:requiressl> being case sensitive. 2020-03-09 04:41:29 +00:00
Sadie Powell
5960cbcde3 Fix get_cpu_count not being evaluated as a scalar.
This fixes a bug where the changes in 0c34d28447 did not work.
2020-03-09 03:44:41 +00:00
Sadie Powell
5c01f7c08f Standardise the characters allowed in config identifiers. 2020-03-05 20:47:18 +00:00
Sadie Powell
8d1255a82c Move command stuff to a more appropriate source file. 2020-03-05 20:47:18 +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
Matt Schatz
d05695e5cb
Improve the description of the sslinfo module (#1755). 2020-02-26 05:11:50 +00:00
Sadie Powell
e861d5bfca Use "yes" instead of "true" in the example configs. 2020-02-21 20:37:00 +00:00
Sadie Powell
b31a4aea1b Add support for requiring users to use SSL in order to use SASL. 2020-02-21 20:27:05 +00:00
Sadie Powell
77a2f04c41 Improve the documentation of <sasl:server>. 2020-02-21 20:26:23 +00:00
Sadie Powell
82c89d40cc Add support for using environment variables in the config. 2020-02-20 18:02:51 +00:00
Sadie Powell
89f36a6f1c Fix a memory leak in the httpd module when sockets are closed late. 2020-02-20 13:31:53 +00:00