]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
4 years agoVarious improvements for the helpop module.
Sadie Powell [Mon, 13 Jan 2020 14:32:49 +0000 (14:32 +0000)]
Various improvements for the helpop module.

- Ensure that the config is actually valid. This found an invalid
  entry in the default helpop configs.
- Columize the index page and build it whilst reading the config
  instead of at request time.

4 years agoRemove whitespace between the shebang and the copyright header.
Sadie Powell [Sat, 11 Jan 2020 22:53:07 +0000 (22:53 +0000)]
Remove whitespace between the shebang and the copyright header.

4 years agoUpdate copyright headers.
InspIRCd Robot [Sat, 11 Jan 2020 22:02:47 +0000 (22:02 +0000)]
Update copyright headers.

4 years agoAdd a script for updating the copyright headers.
Sadie Powell [Sat, 11 Jan 2020 21:56:54 +0000 (21:56 +0000)]
Add a script for updating the copyright headers.

4 years agoRebuild the 005 numeric after changing the case mapping.
Sadie Powell [Wed, 8 Jan 2020 11:53:29 +0000 (11:53 +0000)]
Rebuild the 005 numeric after changing the case mapping.

4 years agoMinor improvements to the codepage module.
Sadie Powell [Tue, 7 Jan 2020 23:45:10 +0000 (23:45 +0000)]
Minor improvements to the codepage module.

- Cache the codepage name on load and restore on unload.
- Make origisnick constant.
- Fix the size of the casemap in memcmp call.

4 years agoAdd a replacement for the nationalchars module.
Sadie Powell [Tue, 7 Jan 2020 16:55:25 +0000 (16:55 +0000)]
Add a replacement for the nationalchars module.

4 years agoExplicitly reject nicks beginning with a number in nationalchars.
Sadie Powell [Tue, 7 Jan 2020 10:06:28 +0000 (10:06 +0000)]
Explicitly reject nicks beginning with a number in nationalchars.

Closes #1745.

4 years agoFix linking servers that are using the nationalchars module.
Sadie Powell [Mon, 6 Jan 2020 11:40:02 +0000 (11:40 +0000)]
Fix linking servers that are using the nationalchars module.

Closes #1744.

4 years agoAdd an oper only parameter to Simple{Channel,User}ModeHandler.
Sadie Powell [Sun, 5 Jan 2020 15:22:40 +0000 (15:22 +0000)]
Add an oper only parameter to Simple{Channel,User}ModeHandler.

4 years agoRename the modes in the services_account module to be less confusable.
Sadie Powell [Sun, 5 Jan 2020 15:15:16 +0000 (15:15 +0000)]
Rename the modes in the services_account module to be less confusable.

4 years agoRename <chanhistory:notice> to <chanhistory:prefixmsg>.
Sadie Powell [Fri, 3 Jan 2020 22:35:25 +0000 (22:35 +0000)]
Rename <chanhistory:notice> to <chanhistory:prefixmsg>.

This name is a lot lessambiguous.

4 years agoMake chanhistory skip CTCPs when storing messages.
Sadie Powell [Fri, 3 Jan 2020 22:22:21 +0000 (22:22 +0000)]
Make chanhistory skip CTCPs when storing messages.

Sending historic CTCPs to clients can only end badly.

4 years agoMake chanhistory replay notices as well as privmsgs.
Sadie Powell [Fri, 3 Jan 2020 22:21:39 +0000 (22:21 +0000)]
Make chanhistory replay notices as well as privmsgs.

4 years agoFix the chanhistory module not replaying message tags.
Sadie Powell [Fri, 3 Jan 2020 20:54:24 +0000 (20:54 +0000)]
Fix the chanhistory module not replaying message tags.

4 years agoAdd an event provider class for the event/messagetag event.
Sadie Powell [Fri, 3 Jan 2020 20:48:07 +0000 (20:48 +0000)]
Add an event provider class for the event/messagetag event.

4 years agoBind ports before loading modules.
Sadie Powell [Fri, 3 Jan 2020 12:51:23 +0000 (12:51 +0000)]
Bind ports before loading modules.

This fixes a defect introduced in ce7979bd7d where the ircv3_sts
module was unable to find the SSL listener.

4 years agoUpdate my name and email address.
Sadie Powell [Wed, 1 Jan 2020 00:00:00 +0000 (00:00 +0000)]
Update my name and email address.

4 years agoFix the previous commit on C++11 compilers.
Peter Powell [Sun, 29 Dec 2019 22:17:48 +0000 (23:17 +0100)]
Fix the previous commit on C++11 compilers.

4 years agoMark messages from ulined clients with the inspircd.org/service tag.
Peter Powell [Sun, 29 Dec 2019 18:23:06 +0000 (19:23 +0100)]
Mark messages from ulined clients with the inspircd.org/service tag.

4 years agoIgnore clients on ulined servers when reporting stats in LUSERS.
Peter Powell [Sat, 28 Dec 2019 16:08:06 +0000 (17:08 +0100)]
Ignore clients on ulined servers when reporting stats in LUSERS.

4 years agoUse FindNickOnly for finding the required nick for an alias.
Peter Powell [Sat, 21 Dec 2019 05:37:55 +0000 (05:37 +0000)]
Use FindNickOnly for finding the required nick for an alias.

4 years agoUse FindUUID in place of FindNick in places that only get a UUID.
Peter Powell [Mon, 16 Dec 2019 14:22:26 +0000 (14:22 +0000)]
Use FindUUID in place of FindNick in places that only get a UUID.

4 years agoExtract port binding code to a function and improve output.
Peter Powell [Wed, 11 Dec 2019 12:31:21 +0000 (12:31 +0000)]
Extract port binding code to a function and improve output.

4 years agoUpdate the mailmap for myself.
Matt Schatz [Mon, 9 Dec 2019 07:09:25 +0000 (00:09 -0700)]
Update the mailmap for myself.

4 years agoMake BindPorts return size_t instead of int.
Peter Powell [Mon, 9 Dec 2019 01:34:02 +0000 (01:34 +0000)]
Make BindPorts return size_t instead of int.

4 years agoMake ForkIntoBackground handle exiting by itself.
Peter Powell [Mon, 9 Dec 2019 01:26:33 +0000 (01:26 +0000)]
Make ForkIntoBackground handle exiting by itself.

4 years agoExtract command line option parsing to a function.
Peter Powell [Mon, 9 Dec 2019 01:15:31 +0000 (01:15 +0000)]
Extract command line option parsing to a function.

4 years agoFix indentation of CheckRoot() and error in non-interactive mode.
Peter Powell [Mon, 9 Dec 2019 00:10:59 +0000 (00:10 +0000)]
Fix indentation of CheckRoot() and error in non-interactive mode.

4 years agoImprove behaviour when running as root.
Peter Powell [Sun, 8 Dec 2019 23:08:57 +0000 (23:08 +0000)]
Improve behaviour when running as root.

- Only give the annoying message about root if --runasroot is not
  specified.
- If --runasroot is specified then assume the user knows what they
  are doing.
- Move CheckRoot to a static function in inspircd.cpp.

4 years agoShow the header before checking if the config file exists.
Peter Powell [Sun, 8 Dec 2019 22:29:49 +0000 (22:29 +0000)]
Show the header before checking if the config file exists.

4 years agoInitialise Winsock from inside the socket engine.
Peter Powell [Sun, 8 Dec 2019 22:27:45 +0000 (22:27 +0000)]
Initialise Winsock from inside the socket engine.

4 years agoExtract config file finding code to a function.
Peter Powell [Sun, 8 Dec 2019 22:26:33 +0000 (22:26 +0000)]
Extract config file finding code to a function.

4 years agoExtract performance stat code to a function.
Peter Powell [Sun, 8 Dec 2019 22:08:41 +0000 (22:08 +0000)]
Extract performance stat code to a function.

4 years agoMove XLine garbage collection to core_xline.
Peter Powell [Sun, 8 Dec 2019 21:57:11 +0000 (21:57 +0000)]
Move XLine garbage collection to core_xline.

4 years agoIncrease the core dump size earlier in the process lifetime.
Peter Powell [Sun, 8 Dec 2019 21:41:56 +0000 (21:41 +0000)]
Increase the core dump size earlier in the process lifetime.

According to `man 2 getrlimit` resource limits are inherited by
the child when a process forks.

4 years agoCall RecoverFromFork from ForkIntoBackground.
Peter Powell [Sun, 8 Dec 2019 21:36:19 +0000 (21:36 +0000)]
Call RecoverFromFork from ForkIntoBackground.

4 years agoConvert InspIRCd::SetSignals to a static function.
Peter Powell [Sun, 8 Dec 2019 21:23:22 +0000 (21:23 +0000)]
Convert InspIRCd::SetSignals to a static function.

4 years agoMove forking code into a function and remove DaemonSeed.
Peter Powell [Sun, 8 Dec 2019 21:19:47 +0000 (21:19 +0000)]
Move forking code into a function and remove DaemonSeed.

4 years agoExtract the core dump size increasing code to a function.
Peter Powell [Sun, 8 Dec 2019 20:53:19 +0000 (20:53 +0000)]
Extract the core dump size increasing code to a function.

4 years agoMake the UpdateTime function easier to read.
Peter Powell [Sun, 8 Dec 2019 20:39:46 +0000 (20:39 +0000)]
Make the UpdateTime function easier to read.

4 years agoExtract root dropping code to a function.
Peter Powell [Sun, 8 Dec 2019 20:39:28 +0000 (20:39 +0000)]
Extract root dropping code to a function.

4 years agoReplace our Windows getopt_long wrapper with ya_getopt.
Peter Powell [Sun, 8 Dec 2019 19:39:02 +0000 (19:39 +0000)]
Replace our Windows getopt_long wrapper with ya_getopt.

Closes #546.

4 years agoUse meaningful variable names in consolecolors.
Peter Powell [Sun, 8 Dec 2019 19:12:56 +0000 (19:12 +0000)]
Use meaningful variable names in consolecolors.

4 years agoExtract rng initialisation code to a function.
Peter Powell [Sun, 8 Dec 2019 19:05:01 +0000 (19:05 +0000)]
Extract rng initialisation code to a function.

4 years agoMove various static functions into an anonymous namespace.
Peter Powell [Sun, 8 Dec 2019 18:44:27 +0000 (18:44 +0000)]
Move various static functions into an anonymous namespace.

4 years agoClean up the initialisation of the InspIRCd class.
Peter Powell [Sun, 8 Dec 2019 17:26:58 +0000 (17:26 +0000)]
Clean up the initialisation of the InspIRCd class.

4 years agoGet rid of the platform tests in the Travis build script.
Peter Powell [Fri, 6 Dec 2019 19:33:55 +0000 (19:33 +0000)]
Get rid of the platform tests in the Travis build script.

We only build on Xenial nowadays so this check is unnecessary.

4 years agoFixing MatchCIDR call when checking proxy range
iwalkalone [Fri, 6 Dec 2019 17:07:49 +0000 (18:07 +0100)]
Fixing MatchCIDR call when checking proxy range

4 years agoBump the InspIRCd ABI version.
Peter Powell [Tue, 3 Dec 2019 12:25:12 +0000 (12:25 +0000)]
Bump the InspIRCd ABI version.

4 years agoAdd a note to the issue template about the security policy.
Peter Powell [Tue, 3 Dec 2019 12:08:46 +0000 (12:08 +0000)]
Add a note to the issue template about the security policy.

4 years agoSend * for empty targets in the no such nick/channel message.
Peter Powell [Tue, 3 Dec 2019 12:02:41 +0000 (12:02 +0000)]
Send * for empty targets in the no such nick/channel message.

4 years agoUse network-online instead of network in the systemd service.
Peter Powell [Sat, 30 Nov 2019 16:17:32 +0000 (16:17 +0000)]
Use network-online instead of network in the systemd service.

As recommended at https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/.

Closes #1729.

4 years agoChange the default for <waitpong:sendsnotice> to false.
Peter Powell [Fri, 29 Nov 2019 13:46:24 +0000 (13:46 +0000)]
Change the default for <waitpong:sendsnotice> to false.

This message exists for an incredibly rare issue and just confuses
the vast majority of people.

4 years agoMinor cleanup of the conn_umodes module.
Peter Powell [Fri, 29 Nov 2019 13:43:49 +0000 (13:43 +0000)]
Minor cleanup of the conn_umodes module.

4 years agoWebSocket: move the OriginList typedef inside WebSocketConfig.
Peter Powell [Fri, 29 Nov 2019 11:11:11 +0000 (11:11 +0000)]
WebSocket: move the OriginList typedef inside WebSocketConfig.

4 years agoWebSocket: replace the behindproxy switch with a proxy IP list.
Peter Powell [Fri, 29 Nov 2019 11:09:36 +0000 (11:09 +0000)]
WebSocket: replace the behindproxy switch with a proxy IP list.

4 years agoImplement support for websocket connections via a proxy like nginx.
Peter Powell [Thu, 28 Nov 2019 17:59:35 +0000 (17:59 +0000)]
Implement support for websocket connections via a proxy like nginx.

4 years agoMove WebSocket config to its own class.
Peter Powell [Thu, 28 Nov 2019 17:06:11 +0000 (17:06 +0000)]
Move WebSocket config to its own class.

4 years agoAdd some overloads of IRCv3::Replies::Reply#Send.
Peter Powell [Mon, 25 Nov 2019 14:10:42 +0000 (14:10 +0000)]
Add some overloads of IRCv3::Replies::Reply#Send.

4 years agoRename ldapoper class to LDAPOper.
Peter Powell [Fri, 22 Nov 2019 14:13:45 +0000 (14:13 +0000)]
Rename ldapoper class to LDAPOper.

This might be causing issues for some people?

4 years agoSplit the channel mode and extban replies.
Matt Schatz [Mon, 18 Nov 2019 10:21:19 +0000 (03:21 -0700)]
Split the channel mode and extban replies.

Tell the user when they are extbanned rather than incorrectly say
that the channel mode is set.
Refactored the logic in m_nonotice to match that of the others.

4 years agoChange Config->CaseMapping back when unloading.
Matt Schatz [Sun, 17 Nov 2019 12:06:48 +0000 (05:06 -0700)]
Change Config->CaseMapping back when unloading.

Now that casemapping is configurable in the core and we set that
Config variable rather than just modifying the ISupport output each
time, we need to change the variable back when being unloaded. So we
save the current value when loading and set it back when being
unloaded. We also need to call the ISupport builder a second time as
the core calls it before we destruct.

4 years agoAllow options:casemapping to remain defined when using m_nationalchars.
Matt Schatz [Sun, 17 Nov 2019 12:06:33 +0000 (05:06 -0700)]
Allow options:casemapping to remain defined when using m_nationalchars.

4 years agoDeprecate Send{Channel,User}Notice; use SendMessage instead.
Peter Powell [Sun, 17 Nov 2019 22:37:24 +0000 (22:37 +0000)]
Deprecate Send{Channel,User}Notice; use SendMessage instead.

4 years agoMake rehashing messages more consistent.
Peter Powell [Sun, 17 Nov 2019 22:23:51 +0000 (22:23 +0000)]
Make rehashing messages more consistent.

4 years agoAllow Channel::WriteNotice send to other servers and status ranks.
Peter Powell [Sun, 17 Nov 2019 22:06:36 +0000 (22:06 +0000)]
Allow Channel::WriteNotice send to other servers and status ranks.

4 years agoClose connections when an I/O hook is configured but not loaded.
Peter Powell [Sat, 16 Nov 2019 22:04:08 +0000 (22:04 +0000)]
Close connections when an I/O hook is configured but not loaded.

4 years agoOnly show classbase ctor/dtor/cull messages in debug builds.
Peter Powell [Fri, 15 Nov 2019 12:38:10 +0000 (12:38 +0000)]
Only show classbase ctor/dtor/cull messages in debug builds.

4 years agoImprove reading xlines from the server configuration.
Peter Powell [Fri, 15 Nov 2019 11:33:09 +0000 (11:33 +0000)]
Improve reading xlines from the server configuration.

4 years agoRefactor the MySQL code slightly.
Peter Powell [Wed, 13 Nov 2019 17:00:11 +0000 (17:00 +0000)]
Refactor the MySQL code slightly.

4 years agoSSL modules: send SNOTICE upon successful rehash.
Matt Schatz [Wed, 13 Nov 2019 14:28:12 +0000 (07:28 -0700)]
SSL modules: send SNOTICE upon successful rehash.

4 years agoRefactor the MySQL query and result queue classes.
Peter Powell [Wed, 13 Nov 2019 15:55:18 +0000 (15:55 +0000)]
Refactor the MySQL query and result queue classes.

4 years agoGet rid of some dead code in the MySQL module.
Peter Powell [Wed, 13 Nov 2019 16:20:18 +0000 (16:20 +0000)]
Get rid of some dead code in the MySQL module.

4 years agoImprove the logic around connecting to a MySQL server.
Peter Powell [Wed, 13 Nov 2019 13:26:58 +0000 (13:26 +0000)]
Improve the logic around connecting to a MySQL server.

- The connection timeout can now be customised with <database:timeout>.
- <database:port> is now limited to the 1-65535 range.
- The MySQL library will now not install a SIGPIPE handler as it
  would override the default InspIRCd ignore behavopur.
- Errors caused by setting the default character set and executing
  the initial query are now no longer ignored.

4 years agoAdd GetId() to the SQL::Provider class.
Peter Powell [Wed, 13 Nov 2019 12:58:18 +0000 (12:58 +0000)]
Add GetId() to the SQL::Provider class.

4 years agoUse case insensitive comparisons when checking for SSL rehashes.
Peter Powell [Mon, 28 Oct 2019 13:17:32 +0000 (13:17 +0000)]
Use case insensitive comparisons when checking for SSL rehashes.

4 years agoRelease v3.4.0.
Peter Powell [Fri, 25 Oct 2019 10:40:44 +0000 (11:40 +0100)]
Release v3.4.0.

4 years agoAdd a workaround for connectban hitting gateway IP addresses.
Peter Powell [Fri, 25 Oct 2019 08:50:48 +0000 (09:50 +0100)]
Add a workaround for connectban hitting gateway IP addresses.

4 years agoExtract connectban's range checking code to a function.
Peter Powell [Fri, 25 Oct 2019 08:26:18 +0000 (09:26 +0100)]
Extract connectban's range checking code to a function.

4 years agom_noctcp: Fix noctcp user mode not applying to exempted channel ops.
Robby [Wed, 18 Sep 2019 14:08:12 +0000 (16:08 +0200)]
m_noctcp: Fix noctcp user mode not applying to exempted channel ops.

4 years agoExempt the KiwiIRC.com servers from X-lines.
Peter Powell [Thu, 24 Oct 2019 14:44:53 +0000 (15:44 +0100)]
Exempt the KiwiIRC.com servers from X-lines.

4 years agoFix a typo in the KiwiIRC.com server IPs.
Peter Powell [Thu, 24 Oct 2019 14:43:33 +0000 (15:43 +0100)]
Fix a typo in the KiwiIRC.com server IPs.

4 years agoRaise <connflood:bootwait> from 10 seconds to 2 minutes.
Peter Powell [Thu, 24 Oct 2019 14:22:46 +0000 (15:22 +0100)]
Raise <connflood:bootwait> from 10 seconds to 2 minutes.

Many clients don't reconnect automatically and it can take a while
for them to reconnect.

4 years agoDisable DNS/DNSBL/ident lookups for unregistered KiwiIRC.com users.
Peter Powell [Thu, 24 Oct 2019 14:19:20 +0000 (15:19 +0100)]
Disable DNS/DNSBL/ident lookups for unregistered KiwiIRC.com users.

4 years agoIgnore DNSBL responses if the user's IP address has changed.
Peter Powell [Thu, 24 Oct 2019 14:14:35 +0000 (15:14 +0100)]
Ignore DNSBL responses if the user's IP address has changed.

4 years agoFix respecting the deprecated <channels:users> tag.
Peter Powell [Thu, 24 Oct 2019 09:25:29 +0000 (10:25 +0100)]
Fix respecting the deprecated <channels:users> tag.

4 years agoImprove the timed ban notices (#1722).
Matt Schatz [Thu, 24 Oct 2019 14:48:28 +0000 (08:48 -0600)]
Improve the timed ban notices (#1722).

- Save the nick of the setter to use in the expiry message.
- Change both notice messages to a standard and informative style.

4 years agoFix some compiler errors in core_hostname_lookup.
Peter Powell [Tue, 22 Oct 2019 21:27:07 +0000 (22:27 +0100)]
Fix some compiler errors in core_hostname_lookup.

No thanks to SourceTree's diff view for causing this.

4 years agoHandle more error cases in core_hostname_lookup.
Peter Powell [Tue, 22 Oct 2019 14:15:59 +0000 (15:15 +0100)]
Handle more error cases in core_hostname_lookup.

4 years agoOn DNS fail reset connecting users hostname to their IP.
Peter Powell [Tue, 22 Oct 2019 09:09:17 +0000 (10:09 +0100)]
On DNS fail reset connecting users hostname to their IP.

Closes #1713.

4 years agoImprove the core_hostname_lookup result log message.
Peter Powell [Mon, 21 Oct 2019 12:45:40 +0000 (13:45 +0100)]
Improve the core_hostname_lookup result log message.

- Add the type of request.
- Add whether the request was cached.

4 years agoRemove duplicate code in core_hostname_lookup.
Peter Powell [Mon, 21 Oct 2019 12:34:09 +0000 (13:34 +0100)]
Remove duplicate code in core_hostname_lookup.

- The lookup type is already stored in the question.
- core_dns validates hostnames by IsHost already.

4 years agoFire the OnSetUserIP event after the connect class change.
Peter Powell [Mon, 21 Oct 2019 11:21:11 +0000 (12:21 +0100)]
Fire the OnSetUserIP event after the connect class change.

4 years agoGet rid of the ptrHosts extension item.
Peter Powell [Mon, 21 Oct 2019 09:50:52 +0000 (10:50 +0100)]
Get rid of the ptrHosts extension item.

This is unnecessary as the resolved value is already stored in the
question in the request class.

4 years agoAllow event providers to know when a listener subs or unsubs.
Peter Powell [Sat, 19 Oct 2019 16:26:30 +0000 (17:26 +0100)]
Allow event providers to know when a listener subs or unsubs.

4 years agoUpdate examples directory when paths are changed interactively.
Matt Schatz [Sat, 21 Sep 2019 06:33:53 +0000 (00:33 -0600)]
Update examples directory when paths are changed interactively.

4 years agoAdd oper exemption to hidemode.
Matt Schatz [Sun, 20 Oct 2019 02:35:55 +0000 (20:35 -0600)]
Add oper exemption to hidemode.

4 years agoFix a shadowing warning in LocalUser.
Peter Powell [Fri, 18 Oct 2019 12:53:51 +0000 (13:53 +0100)]
Fix a shadowing warning in LocalUser.

4 years agoFix a shadowing warning in the serialisation code.
Peter Powell [Fri, 18 Oct 2019 12:49:05 +0000 (13:49 +0100)]
Fix a shadowing warning in the serialisation code.