]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
5 years agoImplement support for IRCv3 client-to-client tags.
Peter Powell [Thu, 6 Sep 2018 09:09:09 +0000 (10:09 +0100)]
Implement support for IRCv3 client-to-client tags.

5 years agoFix erasing event subscribers erasing all with the same priority.
Peter Powell [Tue, 19 Feb 2019 18:32:49 +0000 (18:32 +0000)]
Fix erasing event subscribers erasing all with the same priority.

5 years agoAllow customising ElementComp in flat_{map,multimap,multiset,set}.
Peter Powell [Tue, 19 Feb 2019 18:22:00 +0000 (18:22 +0000)]
Allow customising ElementComp in flat_{map,multimap,multiset,set}.

5 years agoMinor text fixes for m_filter.
Robby [Tue, 19 Feb 2019 20:25:16 +0000 (21:25 +0100)]
Minor text fixes for m_filter.

5 years agoImprove the messages in m_filter.
Matt Schatz [Mon, 18 Feb 2019 11:53:14 +0000 (04:53 -0700)]
Improve the messages in m_filter.

* Deduplicate "FILTER" in some SNOTICES.
* Add the filter reason to removals to match
with X-line removals now.
* Use the new DurationString() function for a
standardized duration display when adding.
* Add X-line mask, duration, and expiry date to
the action messages.

5 years agoImprove support for wildcards in <link:name>.
Peter Powell [Mon, 18 Feb 2019 16:12:46 +0000 (16:12 +0000)]
Improve support for wildcards in <link:name>.

Closes #1569.

5 years agoFix MatchCIDR matching UNIX socket hostnames.
Peter Powell [Mon, 18 Feb 2019 15:43:22 +0000 (15:43 +0000)]
Fix MatchCIDR matching UNIX socket hostnames.

5 years agoStart using DurationString() in X-line additions and
Matt Schatz [Sun, 17 Feb 2019 09:23:32 +0000 (02:23 -0700)]
Start using DurationString() in X-line additions and

a few other modules where it fits better than just showing seconds.

5 years agoX-line expiries: use the new DurationString() function.
Matt Schatz [Sun, 17 Feb 2019 09:20:56 +0000 (02:20 -0700)]
X-line expiries: use the new DurationString() function.

5 years agoAdd a function for displaying human-readable durations.
Matt Schatz [Sun, 17 Feb 2019 09:10:26 +0000 (02:10 -0700)]
Add a function for displaying human-readable durations.

Add InspIRCd::DurationString() to take a time_t and return a string
with the duration in a human-readable format (ex: 1y20w2d3h5m9s).

5 years agoVarious text improvements: consistency, syntax, help and doc updates/fixes.
Robby [Sun, 17 Feb 2019 14:58:31 +0000 (15:58 +0100)]
Various text improvements: consistency, syntax, help and doc updates/fixes.

5 years agoFix an off-by-one error in User::GetModeLetters().
Peter Powell [Sun, 17 Feb 2019 10:23:19 +0000 (10:23 +0000)]
Fix an off-by-one error in User::GetModeLetters().

5 years agoircv3_chghost: also send the CHGHOST message to the modified user.
Peter Powell [Sat, 16 Feb 2019 15:24:55 +0000 (15:24 +0000)]
ircv3_chghost: also send the CHGHOST message to the modified user.

5 years agoUse the local hostname as the server name if one is not specified.
Peter Powell [Sat, 16 Feb 2019 14:25:29 +0000 (14:25 +0000)]
Use the local hostname as the server name if one is not specified.

5 years agoRemove obsolete ifdef in m_ssl_gnutls.
Peter Powell [Sat, 16 Feb 2019 12:06:44 +0000 (12:06 +0000)]
Remove obsolete ifdef in m_ssl_gnutls.

GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+

5 years agoMove the close and jumpserver modules to inspircd-extras.
Peter Powell [Fri, 15 Feb 2019 12:35:51 +0000 (12:35 +0000)]
Move the close and jumpserver modules to inspircd-extras.

- The close module is borderline useless.
- The jumpserver numeric is supported by barely any clients and
  has various security problems.

5 years agoReplace GetServerPort() with server_sa.port().
Peter Powell [Fri, 15 Feb 2019 10:58:43 +0000 (10:58 +0000)]
Replace GetServerPort() with server_sa.port().

5 years agoRename User::nping to nextping for consistency with lastping.
Peter Powell [Fri, 15 Feb 2019 10:56:08 +0000 (10:56 +0000)]
Rename User::nping to nextping for consistency with lastping.

5 years agoRefactor UserManager::DoBackgroundUserStuff().
Peter Powell [Thu, 14 Feb 2019 20:36:55 +0000 (20:36 +0000)]
Refactor UserManager::DoBackgroundUserStuff().

5 years agoSilence a warning from the helper script on OpenBSD.
Peter Powell [Thu, 14 Feb 2019 16:16:01 +0000 (16:16 +0000)]
Silence a warning from the helper script on OpenBSD.

5 years agoWriteNeighborsWithCap: add the ability to send to the origin user.
Peter Powell [Thu, 14 Feb 2019 14:40:12 +0000 (14:40 +0000)]
WriteNeighborsWithCap: add the ability to send to the origin user.

5 years agoRe-tabularise the helpop cuser/coper command lists.
Peter Powell [Sat, 9 Feb 2019 12:46:50 +0000 (12:46 +0000)]
Re-tabularise the helpop cuser/coper command lists.

5 years agoUnify the helpop and helpop-full config files.
Peter Powell [Sat, 9 Feb 2019 12:34:19 +0000 (12:34 +0000)]
Unify the helpop and helpop-full config files.

5 years agoImplement support for SQUERY from RFC 2812.
Peter Powell [Sat, 9 Feb 2019 10:35:03 +0000 (10:35 +0000)]
Implement support for SQUERY from RFC 2812.

This is treated internally as a PRIVMSG with a few exceptions:

1. The command MUST have exactly one target.
2. The target MUST be a user.
3. The target MUST be on a u-lined server (e.g. NickServ).

5 years agoMove CommandMessage::Handle into the class definition.
Peter Powell [Fri, 8 Feb 2019 14:25:20 +0000 (14:25 +0000)]
Move CommandMessage::Handle into the class definition.

5 years agoMove message handling code to Handle{Channel,Server,User}Target.
Peter Powell [Fri, 8 Feb 2019 13:31:38 +0000 (13:31 +0000)]
Move message handling code to Handle{Channel,Server,User}Target.

This makes the logic for this module considerably easier to read.

5 years agoDeduplicate firing module events in core_message.
Peter Powell [Fri, 8 Feb 2019 13:07:49 +0000 (13:07 +0000)]
Deduplicate firing module events in core_message.

5 years agocore_message: remove unnecessary inheritance logic.
Peter Powell [Fri, 8 Feb 2019 12:26:44 +0000 (12:26 +0000)]
core_message: remove unnecessary inheritance logic.

5 years agoRename core_privmsg to core_message.
Peter Powell [Fri, 8 Feb 2019 12:10:28 +0000 (12:10 +0000)]
Rename core_privmsg to core_message.

5 years agoFix erroneously limiting to the size of sa instead of sun_path.
Peter Powell [Thu, 7 Feb 2019 17:35:44 +0000 (17:35 +0000)]
Fix erroneously limiting to the size of sa instead of sun_path.

5 years agoAdd irc::sockets::untosa() for creating AF_UNIX sockaddrs.
Peter Powell [Thu, 7 Feb 2019 13:08:21 +0000 (13:08 +0000)]
Add irc::sockets::untosa() for creating AF_UNIX sockaddrs.

Also fix an overly long albeit harmless memcpy when creating UNIX
socket listeners. Thanks to @psychon for reporting this.

5 years agoFix an unintentionally inverted condition in core_oper.
Peter Powell [Thu, 7 Feb 2019 11:57:33 +0000 (11:57 +0000)]
Fix an unintentionally inverted condition in core_oper.

5 years agoDocument OnUserWrite.
Peter Powell [Thu, 7 Feb 2019 11:56:53 +0000 (11:56 +0000)]
Document OnUserWrite.

5 years agoTell people to run `make install` instead of just `make`.
Peter Powell [Wed, 6 Feb 2019 23:15:33 +0000 (23:15 +0000)]
Tell people to run `make install` instead of just `make`.

5 years agoDon't allow invalid characters in UNIX listener paths.
linuxdaemon [Thu, 24 Jan 2019 16:55:50 +0000 (10:55 -0600)]
Don't allow invalid characters in UNIX listener paths.

5 years agoExpand searching in m_httpd_stats, add global handling of GET parameters (#1566)
linuxdaemon [Wed, 6 Feb 2019 10:33:06 +0000 (04:33 -0600)]
Expand searching in m_httpd_stats, add global handling of GET parameters (#1566)

5 years agoRelease v3.0.0 release candidate 2.
Peter Powell [Wed, 6 Feb 2019 10:02:31 +0000 (10:02 +0000)]
Release v3.0.0 release candidate 2.

5 years agoQuit users during cleanup instead of when /DIE is executed.
Peter Powell [Tue, 5 Feb 2019 17:26:19 +0000 (17:26 +0000)]
Quit users during cleanup instead of when /DIE is executed.

5 years agoDelete the old broken test suite.
Peter Powell [Tue, 5 Feb 2019 17:11:54 +0000 (17:11 +0000)]
Delete the old broken test suite.

This doesn't work properly and is disabled in both debug & release
builds. It will be resurrected with a proper unit testing framework
in the future.

5 years agoMove <oper:class> and <oper:vhost> to core_oper.
Peter Powell [Tue, 5 Feb 2019 02:22:26 +0000 (02:22 +0000)]
Move <oper:class> and <oper:vhost> to core_oper.

5 years agoModuleManager: use std::flush instead of fflush(stdout).
Peter Powell [Tue, 5 Feb 2019 00:06:03 +0000 (00:06 +0000)]
ModuleManager: use std::flush instead of fflush(stdout).

5 years agoModule: Initialise 'ModuleDLLManager' and 'dying' correctly.
Peter Powell [Tue, 5 Feb 2019 00:00:56 +0000 (00:00 +0000)]
Module: Initialise 'ModuleDLLManager' and 'dying' correctly.

5 years agoDLLManager: add a function for retrieving a symbol.
Peter Powell [Mon, 4 Feb 2019 23:37:54 +0000 (23:37 +0000)]
DLLManager: add a function for retrieving a symbol.

5 years agom_check: improve the output when showing list modes.
Peter Powell [Mon, 4 Feb 2019 18:46:02 +0000 (18:46 +0000)]
m_check: improve the output when showing list modes.

Closes #1568.

5 years agom_check: rename the timestamp key to createdat.
Peter Powell [Mon, 4 Feb 2019 15:28:01 +0000 (15:28 +0000)]
m_check: rename the timestamp key to createdat.

5 years agom_check: improve the output of the member key.
Peter Powell [Mon, 4 Feb 2019 15:26:53 +0000 (15:26 +0000)]
m_check: improve the output of the member key.

5 years agom_check: split modeperms into chanmodeperms and usermodeperms.
Peter Powell [Mon, 4 Feb 2019 14:22:49 +0000 (14:22 +0000)]
m_check: split modeperms into chanmodeperms and usermodeperms.

5 years agom_check: remove unnecessary usage of CheckContext::List.
Peter Powell [Mon, 4 Feb 2019 14:18:32 +0000 (14:18 +0000)]
m_check: remove unnecessary usage of CheckContext::List.

5 years agoImprove the name of the list mode extensible.
Peter Powell [Mon, 4 Feb 2019 14:04:05 +0000 (14:04 +0000)]
Improve the name of the list mode extensible.

5 years agom_check: replace timestring() with a Write() overlod.
Peter Powell [Mon, 4 Feb 2019 13:10:23 +0000 (13:10 +0000)]
m_check: replace timestring() with a Write() overlod.

5 years agoident: fix erroneously prefixing an ident multiple times.
Peter Powell [Mon, 4 Feb 2019 10:20:33 +0000 (10:20 +0000)]
ident: fix erroneously prefixing an ident multiple times.

5 years agoident: rename ext to socket.
Peter Powell [Fri, 1 Feb 2019 10:51:08 +0000 (10:51 +0000)]
ident: rename ext to socket.

5 years agoident: rename nolookupprefix to prefixunqueried.
Peter Powell [Fri, 1 Feb 2019 10:49:00 +0000 (10:49 +0000)]
ident: rename nolookupprefix to prefixunqueried.

5 years agoident: store the timeout as an unsigned value and limit to 60s.
Peter Powell [Fri, 1 Feb 2019 10:46:49 +0000 (10:46 +0000)]
ident: store the timeout as an unsigned value and limit to 60s.

5 years agoident: reduce the amount of messages sent when a lookup fails.
Peter Powell [Fri, 1 Feb 2019 10:43:51 +0000 (10:43 +0000)]
ident: reduce the amount of messages sent when a lookup fails.

5 years agoident: Change idents with the ChangeIdent method.
Peter Powell [Fri, 1 Feb 2019 10:39:11 +0000 (10:39 +0000)]
ident: Change idents with the ChangeIdent method.

5 years agoident: Fix making idents longer than maxident when a lookup fails.
Peter Powell [Fri, 18 Jan 2019 13:12:00 +0000 (13:12 +0000)]
ident: Fix making idents longer than maxident when a lookup fails.

5 years agoAllow multiple fingerprints in an oper block (#1564)
linuxdaemon [Fri, 1 Feb 2019 09:47:20 +0000 (03:47 -0600)]
Allow multiple fingerprints in an oper block (#1564)

5 years agoFix a minor typo in ssl.h
B00mX0r [Thu, 31 Jan 2019 09:26:06 +0000 (01:26 -0800)]
Fix a minor typo in ssl.h

5 years agoImprove the accessibility and robustness of prompt_bool.
Peter Powell [Tue, 29 Jan 2019 02:14:09 +0000 (02:14 +0000)]
Improve the accessibility and robustness of prompt_bool.

- Use "yes" and "no" instead of "y" and "n".
- Validate the true and false responses properly.
- Keep prompting the user for a response until they give one which
  is valid.

5 years agoDon't clear the screen when running in interactive mode.
Peter Powell [Tue, 29 Jan 2019 02:04:27 +0000 (02:04 +0000)]
Don't clear the screen when running in interactive mode.

This hides potentially useful information.

5 years agoImprove setting the gid/uid which will own files.
Peter Powell [Tue, 29 Jan 2019 01:35:00 +0000 (01:35 +0000)]
Improve setting the gid/uid which will own files.

- Consistently set the gid/uid for all directories and files.
- Replace the obnoxious warning about root on `make install` with
  a friendlier warning whilst running configure.
- Always install the inspircd executable and modules.

5 years agoFix -Wnewline-eof warning.
Peter Powell [Tue, 29 Jan 2019 04:46:18 +0000 (04:46 +0000)]
Fix -Wnewline-eof warning.

5 years agoFix reading the setname config tag.
Peter Powell [Mon, 28 Jan 2019 23:23:41 +0000 (23:23 +0000)]
Fix reading the setname config tag.

5 years agoRead the muteban config in ReadConfig().
Peter Powell [Mon, 28 Jan 2019 22:19:33 +0000 (22:19 +0000)]
Read the muteban config in ReadConfig().

5 years agoFix RPL_ADMINME not having the correct parameters.
Peter Powell [Mon, 28 Jan 2019 22:17:44 +0000 (22:17 +0000)]
Fix RPL_ADMINME not having the correct parameters.

5 years agoFix the prioritisation of OnRawMode in m_samode.
Peter Powell [Mon, 28 Jan 2019 21:54:49 +0000 (21:54 +0000)]
Fix the prioritisation of OnRawMode in m_samode.

5 years agoFix the description of <setname:operonly>.
Peter Powell [Mon, 28 Jan 2019 21:41:28 +0000 (21:41 +0000)]
Fix the description of <setname:operonly>.

5 years agoFix sending the modes in RPL_CHANNELMODEIS as one big parameter.
Peter Powell [Mon, 28 Jan 2019 21:24:39 +0000 (21:24 +0000)]
Fix sending the modes in RPL_CHANNELMODEIS as one big parameter.

5 years agoAllow configuring whether SETNAME sends snotices and is oper-only.
Peter Powell [Mon, 28 Jan 2019 19:42:02 +0000 (19:42 +0000)]
Allow configuring whether SETNAME sends snotices and is oper-only.

5 years agoAdd ParamMode::IsParameterSecret and remove special casing of keys.
Peter Powell [Mon, 28 Jan 2019 17:15:25 +0000 (17:15 +0000)]
Add ParamMode::IsParameterSecret and remove special casing of keys.

5 years agoFix not checking for server names case insensitively.
Peter Powell [Mon, 28 Jan 2019 16:45:14 +0000 (16:45 +0000)]
Fix not checking for server names case insensitively.

5 years agoRefactor m_httpd_stats, add subpages (#1554)
linuxdaemon [Mon, 28 Jan 2019 16:39:07 +0000 (10:39 -0600)]
Refactor m_httpd_stats, add subpages (#1554)

5 years agoFix erroneously sending RPL_YOURDISPLAYEDHOST to HAProxy clients.
Peter Powell [Mon, 28 Jan 2019 13:27:56 +0000 (13:27 +0000)]
Fix erroneously sending RPL_YOURDISPLAYEDHOST to HAProxy clients.

5 years agoFix parsing anticaps mode parameters (again).
Peter Powell [Mon, 28 Jan 2019 10:31:55 +0000 (10:31 +0000)]
Fix parsing anticaps mode parameters (again).

It is better to fix the underlying bug than the result of it.

This replaces commit 963213132dd923d0e7dbd47ea6f20373cdef343b.

5 years agoAdd overloads for ConvToNum to prevent (unsigned) char weirdness.
Peter Powell [Mon, 28 Jan 2019 11:07:49 +0000 (11:07 +0000)]
Add overloads for ConvToNum to prevent (unsigned) char weirdness.

5 years agoFix sending the SSL connection notice when using a non-SSL gateway.
Peter Powell [Fri, 25 Jan 2019 10:57:37 +0000 (10:57 +0000)]
Fix sending the SSL connection notice when using a non-SSL gateway.

5 years agoRemove trailing whitespace from various source files.
Peter Powell [Thu, 24 Jan 2019 22:06:27 +0000 (22:06 +0000)]
Remove trailing whitespace from various source files.

5 years agoFix overriding <options:exemptchanops> with the exemptchanops mode.
Peter Powell [Thu, 24 Jan 2019 18:03:12 +0000 (18:03 +0000)]
Fix overriding <options:exemptchanops> with the exemptchanops mode.

Closes #1558.

5 years agoFix parsing anticaps mode parameters.
Peter Powell [Thu, 24 Jan 2019 17:56:52 +0000 (17:56 +0000)]
Fix parsing anticaps mode parameters.

5 years agoFix a minor Doxygen warning.
Peter Powell [Thu, 24 Jan 2019 17:15:13 +0000 (17:15 +0000)]
Fix a minor Doxygen warning.

5 years agoAdd the reason to xline removal notices. (#1545)
Matt Schatz [Thu, 24 Jan 2019 16:01:56 +0000 (09:01 -0700)]
Add the reason to xline removal notices. (#1545)

Show the reason in manual xline removal SNOTICEs, just like
expiry SNOTICEs do.

This modifies XLineManager::DelLine() to require another string
reference passed to it.

Requested by @Robby-.

5 years agoAdd translation for casemapping between 2.0/3.0 (#1544)
linuxdaemon [Thu, 24 Jan 2019 15:52:59 +0000 (09:52 -0600)]
Add translation for casemapping between 2.0/3.0 (#1544)

If the casemapping is set to ascii, advertise the m_ascii module to 2.0
to allow use of the m_ascii extras module for 2.0

5 years agoMerge the censor module example config into modules.conf.example.
Peter Powell [Thu, 24 Jan 2019 15:23:17 +0000 (15:23 +0000)]
Merge the censor module example config into modules.conf.example.

5 years agoMove the <disabled> tag out of the core to a new module.
Peter Powell [Thu, 24 Jan 2019 15:10:02 +0000 (15:10 +0000)]
Move the <disabled> tag out of the core to a new module.

5 years agoImplement support for the extended tag space for client tags.
Peter Powell [Wed, 23 Jan 2019 21:45:50 +0000 (21:45 +0000)]
Implement support for the extended tag space for client tags.

5 years agoAvoid forwarding passwords to nickserv when using SASL (#1562)
linuxdaemon [Thu, 24 Jan 2019 13:34:54 +0000 (07:34 -0600)]
Avoid forwarding passwords to nickserv when using SASL (#1562)

5 years agoFix a crash in m_sslinfo when a socket is SSL but a gateway is not.
Peter Powell [Wed, 23 Jan 2019 14:46:20 +0000 (14:46 +0000)]
Fix a crash in m_sslinfo when a socket is SSL but a gateway is not.

5 years agoDon't tell the user if DNS lookups are disabled.
Peter Powell [Wed, 23 Jan 2019 14:59:34 +0000 (14:59 +0000)]
Don't tell the user if DNS lookups are disabled.

5 years agoFix away broadcast logic (#1561)
linuxdaemon [Wed, 23 Jan 2019 08:40:25 +0000 (02:40 -0600)]
Fix away broadcast logic (#1561)

5 years agoRename OnClientProtocolProcessTag to OnProcessTag.
Peter Powell [Tue, 22 Jan 2019 11:59:44 +0000 (11:59 +0000)]
Rename OnClientProtocolProcessTag to OnProcessTag.

5 years agoCall the OnUserInit hook from earlier in UserManager::AddUser.
Peter Powell [Sun, 20 Jan 2019 09:52:38 +0000 (09:52 +0000)]
Call the OnUserInit hook from earlier in UserManager::AddUser.

This fixes messages being lost when sending them to a user who has
only just connected to the server.

5 years agoMove ident lookups to the OnSetUserIP hook.
Peter Powell [Sun, 20 Jan 2019 09:51:12 +0000 (09:51 +0000)]
Move ident lookups to the OnSetUserIP hook.

5 years agoFix sending the entire VERSION output as a single parameter.
Peter Powell [Sat, 19 Jan 2019 12:55:31 +0000 (12:55 +0000)]
Fix sending the entire VERSION output as a single parameter.

Closes #1560.

5 years agom_check: Fix showing oper permissions (privileges). (#1556)
Robby [Thu, 17 Jan 2019 11:20:26 +0000 (12:20 +0100)]
m_check: Fix showing oper permissions (privileges). (#1556)

5 years agoFix the hostchange set action swapping the host/value fields.
Peter Powell [Mon, 14 Jan 2019 21:33:51 +0000 (21:33 +0000)]
Fix the hostchange set action swapping the host/value fields.

5 years agoRedo OnSetEndPoint logic to fix duplicate clones (#1549).
linuxdaemon [Mon, 14 Jan 2019 11:48:45 +0000 (05:48 -0600)]
Redo OnSetEndPoint logic to fix duplicate clones (#1549).

5 years agoAllow wildcards in <connect:dnsbl>
linuxdaemon [Fri, 11 Jan 2019 15:44:51 +0000 (09:44 -0600)]
Allow wildcards in <connect:dnsbl>

This makes it consistent with other <connect> class parameters like
`webirc`

5 years agoThe <ident:bind> setting doesn't exist anymore, remove the reference to it from the...
Robby [Fri, 11 Jan 2019 14:54:58 +0000 (15:54 +0100)]
The <ident:bind> setting doesn't exist anymore, remove the reference to it from the config.

This setting was removed in commit 0a1fe6cf293bef91b419f57374b96a6d2aec636e.

5 years agoFix reading the server path for UNIX sockets.
Peter Powell [Thu, 10 Jan 2019 19:14:17 +0000 (19:14 +0000)]
Fix reading the server path for UNIX sockets.