]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
5 years agoReplace all abstract usages of his/he/her with they/their/it.
Peter Powell [Fri, 7 Jun 2019 18:47:15 +0000 (19:47 +0100)]
Replace all abstract usages of his/he/her with they/their/it.

5 years agoAdd the msgid tag to all outgoing messages.
Peter Powell [Fri, 7 Jun 2019 12:32:56 +0000 (13:32 +0100)]
Add the msgid tag to all outgoing messages.

5 years agoCoreExport for CommandSave. fixes #1635
Ben Harris [Fri, 7 Jun 2019 13:32:48 +0000 (09:32 -0400)]
CoreExport for CommandSave. fixes #1635

5 years agoCheck the unset level in autoop as well as the set level.
Peter Powell [Fri, 7 Jun 2019 09:54:25 +0000 (10:54 +0100)]
Check the unset level in autoop as well as the set level.

5 years agoValidate the exemptchanops parameter better and check permissions.
Peter Powell [Fri, 7 Jun 2019 09:14:54 +0000 (10:14 +0100)]
Validate the exemptchanops parameter better and check permissions.

Closes #1055.

5 years agoShow how many users are non-SSL in ERR_ALLMUSTSSL.
Peter Powell [Fri, 7 Jun 2019 00:34:51 +0000 (01:34 +0100)]
Show how many users are non-SSL in ERR_ALLMUSTSSL.

5 years agoAdd a configure warning about OpenBSDs broken compilers/linkers.
Peter Powell [Thu, 6 Jun 2019 21:28:25 +0000 (22:28 +0100)]
Add a configure warning about OpenBSDs broken compilers/linkers.

5 years agoMake messageflood weights configurable.
Peter Powell [Thu, 6 Jun 2019 15:00:24 +0000 (16:00 +0100)]
Make messageflood weights configurable.

Also, default TAGMSG to being worth 0.2 NOTICE/PRIVMSG. This should
prevent flood kicks from typing notifications.

Closes #1649.

5 years agoOnly call events on modules which aren't dying.
Peter Powell [Thu, 6 Jun 2019 13:14:09 +0000 (14:14 +0100)]
Only call events on modules which aren't dying.

5 years agoUse a less scary message when an alias target is not U-lined.
Peter Powell [Thu, 6 Jun 2019 12:06:28 +0000 (13:06 +0100)]
Use a less scary message when an alias target is not U-lined.

99% of cases of this are due to misconfigurations not due to
underhanded behaviour.

5 years agom_repeat: Fix parsing mode parameter
linuxdaemon [Wed, 5 Jun 2019 13:23:01 +0000 (08:23 -0500)]
m_repeat: Fix parsing mode parameter

5 years agoAllow channels/auspex to see a secret channel topic. (#1654)
Matt Schatz [Wed, 5 Jun 2019 08:02:22 +0000 (02:02 -0600)]
Allow channels/auspex to see a secret channel topic. (#1654)

An oper with the 'channels/auspex' priv can now see the
topic of a secret channel (that they are not in) using
TOPIC. This is on par with the expectation of
'channels/auspex' and current LIST behaviour.

5 years agoFix a compiler warning introduced in d107093. (#1653)
Matt Schatz [Wed, 5 Jun 2019 08:01:33 +0000 (02:01 -0600)]
Fix a compiler warning introduced in d107093. (#1653)

5 years agoFix showing the anticaps channel name in ERR_CANNOTSENDTOCHAN.
Peter Powell [Tue, 4 Jun 2019 16:37:16 +0000 (17:37 +0100)]
Fix showing the anticaps channel name in ERR_CANNOTSENDTOCHAN.

Closes #1652.

5 years agoFix parsing <bind:permissions> as base 10 instead of base 8.
Peter Powell [Fri, 31 May 2019 15:24:15 +0000 (16:24 +0100)]
Fix parsing <bind:permissions> as base 10 instead of base 8.

5 years agoIgnore SIGUSR1 and SIGUSR2 by default.
Peter Powell [Thu, 30 May 2019 20:24:08 +0000 (21:24 +0100)]
Ignore SIGUSR1 and SIGUSR2 by default.

This stops users from accidentally killing their IRC server if they
forget to load the sslrehashsignal module.

5 years agoVarious improvements to UNIX socket support.
Peter Powell [Wed, 29 May 2019 12:53:52 +0000 (13:53 +0100)]
Various improvements to UNIX socket support.

- Allow replacing dead UNIX sockets on startup.
- Allow setting the permissions of the UNIX socket.
- Expand the UNIX socket path relative to the data directory.

5 years agoAdd irc::sockets::isunix for checking if a file is a UNIX socket.
Peter Powell [Wed, 29 May 2019 11:48:05 +0000 (12:48 +0100)]
Add irc::sockets::isunix for checking if a file is a UNIX socket.

5 years agoAdd an overload of StreamSocket::Close which closes when all data has been written.
linuxdaemon [Wed, 22 May 2019 18:47:17 +0000 (13:47 -0500)]
Add an overload of StreamSocket::Close which closes when all data has been written.

Fixes sending large pages in m_httpd (#1646).

5 years agom_filter: Minor cosmetic changes (#1645).
Robby [Mon, 20 May 2019 15:57:59 +0000 (17:57 +0200)]
m_filter: Minor cosmetic changes (#1645).

5 years agoAdd an option to the filter module to exclude registered users from a filter.
Filippo Cortigiani [Mon, 20 May 2019 13:15:00 +0000 (15:15 +0200)]
Add an option to the filter module to exclude registered users from a filter.

5 years agoFix some warnings in m_httpd on older versions of GCC.
Peter Powell [Mon, 20 May 2019 11:00:44 +0000 (12:00 +0100)]
Fix some warnings in m_httpd on older versions of GCC.

5 years agom_haproxy: Initialize address length to 0
linuxdaemon [Sat, 18 May 2019 20:27:15 +0000 (15:27 -0500)]
m_haproxy: Initialize address length to 0

If the command is LOCAL, the address length isn't set before it is used
in ReadProxyAddress()

5 years agoconfigure: Fix log-dir in --system mode
Anatole Denis [Fri, 17 May 2019 15:10:31 +0000 (17:10 +0200)]
configure: Fix log-dir in --system mode

There was a typo, making configure invoked with --system overwrite the
passed --log-dir option with the value of --module-dir

5 years agoRelease v3.1.0.
Peter Powell [Fri, 17 May 2019 08:29:38 +0000 (09:29 +0100)]
Release v3.1.0.

5 years agoCopy the silence flags when sending update notifications.
Peter Powell [Wed, 15 May 2019 08:37:30 +0000 (09:37 +0100)]
Copy the silence flags when sending update notifications.

This fixes a crash bug in the silence module on some versions of GCC.

5 years agoOnly skip applying more X-lines to a user if they have been killed.
Peter Powell [Fri, 17 May 2019 08:23:46 +0000 (09:23 +0100)]
Only skip applying more X-lines to a user if they have been killed.

This fixes an issue with the previous commit where if a user had a
non-killing X-line applied to them (e.g. Q-line) they would not
have any further X-lines applied to them.

Thanks to @linuxdaemon for pointing this out.

5 years agoFix applying pending xlines to online users.
Peter Powell [Thu, 16 May 2019 16:56:37 +0000 (17:56 +0100)]
Fix applying pending xlines to online users.

5 years agoFix space separation for CAPAB module list
linuxdaemon [Wed, 15 May 2019 21:16:11 +0000 (16:16 -0500)]
Fix space separation for CAPAB module list

5 years agoDocument the --disable-auto-extras configure option.
Peter Powell [Wed, 15 May 2019 09:57:02 +0000 (10:57 +0100)]
Document the --disable-auto-extras configure option.

5 years agoComment out all of the includes in the inspircd example configs.
Peter Powell [Wed, 15 May 2019 09:47:46 +0000 (10:47 +0100)]
Comment out all of the includes in the inspircd example configs.

This allows users to use the example config without any special
configuration.

5 years agoAdd support for the IRCv3 message id specification.
Peter Powell [Wed, 15 May 2019 09:33:42 +0000 (10:33 +0100)]
Add support for the IRCv3 message id specification.

5 years agoResize the event sets to 2x the CurrentSetSize in ResizeDouble().
Peter Powell [Tue, 14 May 2019 14:51:25 +0000 (15:51 +0100)]
Resize the event sets to 2x the CurrentSetSize in ResizeDouble().

5 years agoepoll: use a default list size of 16 to match other socket engines.
Peter Powell [Tue, 14 May 2019 14:55:54 +0000 (15:55 +0100)]
epoll: use a default list size of 16 to match other socket engines.

5 years agoFix an inverted condition in the commonchans module.
Peter Powell [Tue, 14 May 2019 13:06:54 +0000 (14:06 +0100)]
Fix an inverted condition in the commonchans module.

5 years agoAdd an enumeration for known protocol versions.
Peter Powell [Mon, 13 May 2019 23:30:56 +0000 (00:30 +0100)]
Add an enumeration for known protocol versions.

5 years agoIf a parent server is hidden then also hide its child servers.
Peter Powell [Mon, 13 May 2019 18:32:39 +0000 (19:32 +0100)]
If a parent server is hidden then also hide its child servers.

This should fix #851.

5 years agoFix an unnecessary string copy when reading the <link> tags.
Peter Powell [Mon, 13 May 2019 16:49:26 +0000 (17:49 +0100)]
Fix an unnecessary string copy when reading the <link> tags.

5 years agoReplace ModuleSpanningTree::TimeToStr with InspIRCd::DurationStr.
Peter Powell [Mon, 13 May 2019 23:51:31 +0000 (00:51 +0100)]
Replace ModuleSpanningTree::TimeToStr with InspIRCd::DurationStr.

5 years agoClean up and document the config header file.
Peter Powell [Mon, 13 May 2019 14:22:14 +0000 (15:22 +0100)]
Clean up and document the config header file.

5 years agoAllow SSLIOHook instances to override Get{Certificate,Fingerprint}.
Peter Powell [Mon, 13 May 2019 13:26:16 +0000 (14:26 +0100)]
Allow SSLIOHook instances to override Get{Certificate,Fingerprint}.

5 years agoFix configure not failing when invalid flags are passed to it.
Peter Powell [Sun, 12 May 2019 10:45:37 +0000 (11:45 +0100)]
Fix configure not failing when invalid flags are passed to it.

5 years agomodulemanager: use get_version to get the InspIRCd version.
Peter Powell [Sat, 11 May 2019 15:34:22 +0000 (16:34 +0100)]
modulemanager: use get_version to get the InspIRCd version.

5 years agoAdd a configure flag for disabling automatically enabling extras.
Peter Powell [Sat, 11 May 2019 14:55:14 +0000 (15:55 +0100)]
Add a configure flag for disabling automatically enabling extras.

Requested by @niacat.

5 years agoMove message access checks to OnUserPre{Tag,}Message.
Peter Powell [Sat, 11 May 2019 13:55:20 +0000 (14:55 +0100)]
Move message access checks to OnUserPre{Tag,}Message.

This allows modules to override them if necessary.

Fixes #1619.

5 years agoAllow disabling a STS policy for users in specific connect classes.
Peter Powell [Sat, 11 May 2019 13:29:54 +0000 (14:29 +0100)]
Allow disabling a STS policy for users in specific connect classes.

Fixes #1634.

5 years agoRelease v3.0.1.
Peter Powell [Fri, 10 May 2019 08:48:43 +0000 (09:48 +0100)]
Release v3.0.1.

5 years agoAdd umode O (override) to helpop.
Robby [Thu, 9 May 2019 17:18:15 +0000 (19:18 +0200)]
Add umode O (override) to helpop.

5 years agoImprove handling of list mode limits.
Peter Powell [Thu, 9 May 2019 15:17:24 +0000 (16:17 +0100)]
Improve handling of list mode limits.

- Fix not being able to set a zero limit.
- Fix MAXLIST not reflecting the true lower limit.
- Fix not treating an empty <maxlist:limit> as equivalent to *.

5 years agoDelete some obsolete comments.
Peter Powell [Thu, 9 May 2019 11:37:44 +0000 (12:37 +0100)]
Delete some obsolete comments.

5 years agoSilence a fallthrough warning in the pgsql module on newer GCCs.
Peter Powell [Thu, 9 May 2019 11:02:57 +0000 (12:02 +0100)]
Silence a fallthrough warning in the pgsql module on newer GCCs.

5 years agom_geo_maxmind: fix building on older libc versions.
Peter Powell [Mon, 6 May 2019 16:35:45 +0000 (17:35 +0100)]
m_geo_maxmind: fix building on older libc versions.

5 years agoRe-order the includes to fix C++03 builds.
nia [Mon, 6 May 2019 14:53:22 +0000 (15:53 +0100)]
Re-order the includes to fix C++03 builds.

inspircd.h defines __STDC_LIMIT_MACROS to ensure that C99 int type
limits are defined, however, if <stdint.h> is included implicitly
before inspircd.h, the build fails due to the C99 integer type
limits being undefined.

5 years agoUpdate the exemptchanops module section in modules.conf.example with missing exemptions.
Robby [Mon, 6 May 2019 14:37:13 +0000 (16:37 +0200)]
Update the exemptchanops module section in modules.conf.example with missing exemptions.

5 years agoDocument the anticaps exemption.
Robby [Mon, 6 May 2019 03:14:05 +0000 (05:14 +0200)]
Document the anticaps exemption.

5 years agoFix building against older versions of glibc.
Peter Powell [Mon, 6 May 2019 00:56:28 +0000 (01:56 +0100)]
Fix building against older versions of glibc.

5 years agoFix relying on PWD being set in the makefile.
Peter Powell [Sun, 5 May 2019 19:47:12 +0000 (20:47 +0100)]
Fix relying on PWD being set in the makefile.

This may not be set in some circumstances.

5 years agowin: change ssize_t typedef to SSIZE_T
Adam [Sun, 5 May 2019 18:06:31 +0000 (14:06 -0400)]
win: change ssize_t typedef to SSIZE_T

libmaxminddb redefines this when building under MSVC and breaks the
build otherwise due to the redefinition of ssize_t

5 years agoFix the <wsorigin> example.
Peter Powell [Sun, 5 May 2019 13:52:32 +0000 (14:52 +0100)]
Fix the <wsorigin> example.

5 years agoAdd the test network to the readme.
Peter Powell [Sun, 5 May 2019 12:45:15 +0000 (13:45 +0100)]
Add the test network to the readme.

5 years agoRaise the connection timeout in the example configs to 20s.
Peter Powell [Sun, 5 May 2019 11:33:55 +0000 (12:33 +0100)]
Raise the connection timeout in the example configs to 20s.

This should give more time for clients on slow connections that
want to do a lot of things (request caps, do SASL auth, etc) on
connect.

Reported by @ensra.

5 years agocmd_names: Fix the syntax.
Robby [Sun, 5 May 2019 04:25:44 +0000 (06:25 +0200)]
cmd_names: Fix the syntax.

5 years agoFix the permissions files are installed with.
Peter Powell [Sat, 4 May 2019 20:20:48 +0000 (21:20 +0100)]
Fix the permissions files are installed with.

Reported by @ensra.

5 years agoUpdate the issue template for the new release.
Peter Powell [Fri, 3 May 2019 14:56:39 +0000 (15:56 +0100)]
Update the issue template for the new release.

5 years agoWork around NetBSD's EV_SET using intptr_t instead of void*.
Peter Powell [Fri, 3 May 2019 14:37:25 +0000 (15:37 +0100)]
Work around NetBSD's EV_SET using intptr_t instead of void*.

Reported by @ensra.

5 years agoFix --distribution-label erroneously requiring --development.
Peter Powell [Fri, 3 May 2019 14:17:15 +0000 (15:17 +0100)]
Fix --distribution-label erroneously requiring --development.

Reported by @ensra.

5 years agoRelease v3.0.0.
Peter Powell [Wed, 1 May 2019 11:30:18 +0000 (12:30 +0100)]
Release v3.0.0.

5 years agoClarify the require* connect block options and document the sslinfo module operonly...
Robby [Fri, 3 May 2019 13:04:00 +0000 (15:04 +0200)]
Clarify the require* connect block options and document the sslinfo module operonly option.

5 years agoFix the ctctags module being marked as a draft.
Peter Powell [Fri, 3 May 2019 08:46:19 +0000 (09:46 +0100)]
Fix the ctctags module being marked as a draft.

5 years agoMerge branch 'insp20' into insp3.
Peter Powell [Wed, 1 May 2019 14:25:23 +0000 (15:25 +0100)]
Merge branch 'insp20' into insp3.

5 years agoRemove the copyright year from the Windows resource file.
Peter Powell [Tue, 30 Apr 2019 09:05:10 +0000 (10:05 +0100)]
Remove the copyright year from the Windows resource file.

5 years agoSome more text fixes and improvements (#1618).
Robby [Sun, 28 Apr 2019 21:26:50 +0000 (23:26 +0200)]
Some more text fixes and improvements (#1618).

5 years agoRaise the maximum time period for the conn_join module to 15m.
Peter Powell [Sun, 28 Apr 2019 16:40:00 +0000 (17:40 +0100)]
Raise the maximum time period for the conn_join module to 15m.

5 years agoFixed a missing quotation mark in the repeat module config.
Vitor Luis [Sun, 28 Apr 2019 13:03:40 +0000 (15:03 +0200)]
Fixed a missing quotation mark in the repeat module config.

5 years agoTextual improvements and fixes such as typos, casing, etc. (#1612)
Robby [Sun, 28 Apr 2019 08:14:21 +0000 (10:14 +0200)]
Textual improvements and fixes such as typos, casing, etc. (#1612)

5 years agoFix compatibility issues between sqloper and postgres
B00mX0r [Fri, 19 Apr 2019 22:28:19 +0000 (15:28 -0700)]
Fix compatibility issues between sqloper and postgres

5 years agom_connectban and m_svshold: Use DurationString() in X-line messages.
Robby [Sat, 27 Apr 2019 01:43:48 +0000 (03:43 +0200)]
m_connectban and m_svshold: Use DurationString() in X-line messages.

5 years agom_spanningtree: Parse and copy message tags for all cmds
linuxdaemon [Sat, 27 Apr 2019 22:35:31 +0000 (17:35 -0500)]
m_spanningtree: Parse and copy message tags for all cmds

Don't ignore message tags on ServerCommands, and avoid creating
duplicate CommandBase::Params instances

5 years agom_spanningtree: Ensure tags are sent in forwarded cmds
linuxdaemon [Sat, 27 Apr 2019 21:41:48 +0000 (16:41 -0500)]
m_spanningtree: Ensure tags are sent in forwarded cmds

When a user (U1) sends a PRIVMSG to a server (S1), which sends it to S2, which finally
sends it to S3 to send to U2, S2 doesn't send the tags it received on
the command from S1 to S3.

5 years agoAdd a Travis build matrix option for C++14.
Peter Powell [Sat, 27 Apr 2019 22:31:45 +0000 (23:31 +0100)]
Add a Travis build matrix option for C++14.

5 years agoFix hiding ERR_NOOPERMOTD response when an operator logs in.
Peter Powell [Fri, 26 Apr 2019 18:10:54 +0000 (19:10 +0100)]
Fix hiding ERR_NOOPERMOTD response when an operator logs in.

5 years agoUpdate documentation links.
Peter Powell [Fri, 26 Apr 2019 22:20:40 +0000 (23:20 +0100)]
Update documentation links.

5 years agoFix the numerics used by the opermotd module.
Peter Powell [Fri, 26 Apr 2019 17:35:17 +0000 (18:35 +0100)]
Fix the numerics used by the opermotd module.

- Use ERR_NOOPERMOTD from UnrealIRCd and RPL_OMOTDSTART, RPL_OMOTD,
  and RPL_ENDOFOMOTD from ircd-ratbox.
- Only send ERR_NOOPERMOTD in response to the command.

5 years agoFix broken linking over IPv4 on IPv6 capable systems.
Peter Powell [Thu, 25 Apr 2019 18:20:07 +0000 (19:20 +0100)]
Fix broken linking over IPv4 on IPv6 capable systems.

If no bind address was specified then one would be
created which had an incompatible address family to
the address that the server was trying to connect to.

5 years agoUpdate vendored utfcpp library to commit ad27c7d5e0.
Peter Powell [Wed, 24 Apr 2019 23:50:19 +0000 (00:50 +0100)]
Update vendored utfcpp library to commit ad27c7d5e0.

5 years agoUpdate vendored http_parser library to v2.9.2.
Peter Powell [Wed, 24 Apr 2019 23:42:34 +0000 (00:42 +0100)]
Update vendored http_parser library to v2.9.2.

5 years agoLink flags must be after compiled objects.
iwalkalone [Mon, 22 Apr 2019 00:35:55 +0000 (02:35 +0200)]
Link flags must be after compiled objects.

5 years agoFix grammar in unknown mode/snomask character messages.
Robby [Sun, 21 Apr 2019 21:10:18 +0000 (23:10 +0200)]
Fix grammar in unknown mode/snomask character messages.

5 years agoHasModePermission: fix inverted condition.
Peter Powell [Sun, 21 Apr 2019 09:46:38 +0000 (10:46 +0100)]
HasModePermission: fix inverted condition.

5 years agoFall back to the most recent version supported on "CAP LS".
Peter Powell [Fri, 19 Apr 2019 13:31:43 +0000 (14:31 +0100)]
Fall back to the most recent version supported on "CAP LS".

This ensures compliance with the behaviour specified in ircv3/ircv3-specifications#371.

5 years agoBump the API revision for the previous commits.
Peter Powell [Fri, 19 Apr 2019 12:47:36 +0000 (13:47 +0100)]
Bump the API revision for the previous commits.

5 years agoImprove the descriptions of various core modules.
Peter Powell [Fri, 19 Apr 2019 12:03:15 +0000 (13:03 +0100)]
Improve the descriptions of various core modules.

5 years agoDemote core_ison and core_userhost to commands in core_user.
Peter Powell [Fri, 19 Apr 2019 11:39:37 +0000 (12:39 +0100)]
Demote core_ison and core_userhost to commands in core_user.

These are not important enough for their own module.

5 years agoPromote cmd_mode to its own core module.
Peter Powell [Fri, 19 Apr 2019 11:29:30 +0000 (12:29 +0100)]
Promote cmd_mode to its own core module.

core_user was an inappropriate location for this as it contains
mode changing code which is used by channels as well as users.

5 years agoFix namedmodes exposing non-key secret parameters to outsiders.
Peter Powell [Fri, 19 Apr 2019 11:23:53 +0000 (12:23 +0100)]
Fix namedmodes exposing non-key secret parameters to outsiders.

5 years agoRemove the OnNamesListItem event out of the core.
Peter Powell [Fri, 19 Apr 2019 10:51:42 +0000 (11:51 +0100)]
Remove the OnNamesListItem event out of the core.

5 years agoHasModePermission: use IsModeChar.
Peter Powell [Fri, 19 Apr 2019 09:42:17 +0000 (10:42 +0100)]
HasModePermission: use IsModeChar.

5 years agoRename HasPermission to HasCommandPermission.
Peter Powell [Fri, 19 Apr 2019 08:30:45 +0000 (09:30 +0100)]
Rename HasPermission to HasCommandPermission.

5 years agoRemove the 'noisy' mode for HasPrivPermission.
Peter Powell [Thu, 18 Apr 2019 23:39:57 +0000 (00:39 +0100)]
Remove the 'noisy' mode for HasPrivPermission.

This was only used in one place.

5 years agoRemove CXX11_OVERRIDE from some non-overrides.
Peter Powell [Thu, 18 Apr 2019 22:16:10 +0000 (23:16 +0100)]
Remove CXX11_OVERRIDE from some non-overrides.