]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
6 years agoChange ServerInfo::gecos to description
genius3000 [Tue, 10 Apr 2018 16:33:46 +0000 (10:33 -0600)]
Change ServerInfo::gecos to description

6 years agoOptimize some behaviour in the core (#1476).
Dylan Frank [Mon, 9 Apr 2018 03:41:04 +0000 (20:41 -0700)]
Optimize some behaviour in the core  (#1476).

6 years agoFix an invalid mode parameters numeric upon attempting to view a list mode
B00mX0r [Sat, 7 Apr 2018 23:11:40 +0000 (16:11 -0700)]
Fix an invalid mode parameters numeric upon attempting to view a list mode

6 years agoInclude modules/whois.h directly from files that use it.
Peter Powell [Sat, 7 Apr 2018 14:48:30 +0000 (15:48 +0100)]
Include modules/whois.h directly from files that use it.

6 years agoMove OnStats from the core to a cross-module event.
Peter Powell [Sat, 7 Apr 2018 14:07:24 +0000 (15:07 +0100)]
Move OnStats from the core to a cross-module event.

Some core code still exists in the XLine system but this will be
replaced when the XLine system is replaced later.

6 years agoFix some more oversights in m_geoip.
Peter Powell [Sat, 7 Apr 2018 14:14:53 +0000 (15:14 +0100)]
Fix some more oversights in m_geoip.

- Add the G: extban to the EXTBAN 005 token.
- Use CXX11_OVERRIDE with ReadConfig and OnCheckBan.

Thanks to @genius3000 for pointing these out.

6 years agoFix disabling the GeoIP extban in m_geoip.
Peter Powell [Sat, 7 Apr 2018 13:06:25 +0000 (14:06 +0100)]
Fix disabling the GeoIP extban in m_geoip.

6 years agom_sqlauth: Allow specifying what hash algos to provide hashes from.
Daniel Vassdal [Sat, 21 Feb 2015 10:50:09 +0000 (11:50 +0100)]
m_sqlauth: Allow specifying what hash algos to provide hashes from.

Defaults to md5,sha256 to be compatible with old configs.

Adds new parameter `kdf`. If this is set (to e.g. bcrypt), the hash
will be compared locally. This requires the password column to be
specified in <sqlauth:column>.

Closes #741

6 years agoSQL: Add HasColumn() to check if a result contains a named column.
Daniel Vassdal [Mon, 2 Mar 2015 02:06:55 +0000 (03:06 +0100)]
SQL: Add HasColumn() to check if a result contains a named column.

6 years agoRefactor m_sqloper to be a full opers.conf replacement (#983).
Dylan Frank [Fri, 6 Apr 2018 17:34:15 +0000 (10:34 -0700)]
Refactor m_sqloper to be a full opers.conf replacement (#983).

m_sqloper now supports dynamic fields, works with m_sslinfo, and works with /stats o.

6 years agoImplement support for banning users from channels by country code.
Peter Powell [Fri, 6 Apr 2018 16:53:14 +0000 (17:53 +0100)]
Implement support for banning users from channels by country code.

6 years agoValidate settings in order in ValidateSettings() (#1475).
genius3000 [Fri, 6 Apr 2018 15:08:30 +0000 (09:08 -0600)]
Validate settings in order in ValidateSettings() (#1475).

* Validate the settings in the same order as the parameter syntax
* Always validate Lines and Secs regardless of having a Diff
* Check Backlog for greater than Max as well as being disabled

6 years agoPrioritize checking for +ikl last to match previous behavior (#1474).
Dylan Frank [Sat, 31 Mar 2018 21:51:51 +0000 (14:51 -0700)]
Prioritize checking for +ikl last to match previous behavior (#1474).

6 years agoMove <security:announceinvites> to core_channel.
Peter Powell [Sat, 31 Mar 2018 12:02:57 +0000 (13:02 +0100)]
Move <security:announceinvites> to core_channel.

6 years agoMove checking for +ikl from the core to to core_channel.
Peter Powell [Sat, 31 Mar 2018 10:50:36 +0000 (11:50 +0100)]
Move checking for +ikl from the core to to core_channel.

6 years agoIgnore expired or invalid client certificates (#1468).
Dylan Frank [Thu, 29 Mar 2018 18:11:55 +0000 (11:11 -0700)]
Ignore expired or invalid client certificates (#1468).

Fixes #1345.

6 years agoDo not send unset topics on channel join per RFC (#1469)
Dylan Frank [Sun, 25 Mar 2018 20:24:38 +0000 (13:24 -0700)]
Do not send unset topics on channel join per RFC (#1469)

Fixes #1091.

6 years agoSeparate secret and private channels on whois for non-opers (#1447)
Dylan Frank [Sun, 25 Mar 2018 16:02:00 +0000 (09:02 -0700)]
Separate secret and private channels on whois for non-opers (#1447)

Separate secret and private channels on WHOIS for all users.

- Move the config parsing from the core to core_whois.
- Replace <security:operspywhois> with an oper privilege.
- Introduce <options:splitwhois> to split WHOIS channel lists.

Closes #969.

6 years agoMerge pull request #1461 from puckipedia/haiku-support
Peter Powell [Tue, 13 Mar 2018 19:31:43 +0000 (19:31 +0000)]
Merge pull request #1461 from puckipedia/haiku-support

Add Haiku support.

6 years agoAdd Haiku support
Puck Meerburg [Sat, 10 Mar 2018 19:44:09 +0000 (20:44 +0100)]
Add Haiku support

6 years agoImprove the message shown to the admin when generating SSL certs.
Peter Powell [Thu, 1 Mar 2018 19:43:36 +0000 (19:43 +0000)]
Improve the message shown to the admin when generating SSL certs.

Self-signed SSL certificates are intended for testing purposes. A
production server should be using a CA-signed certificate instead.

6 years agoAppend LDFLAGS at the same time as CPPFLAGS and CXXFLAGS.
Peter Powell [Sat, 24 Feb 2018 11:48:02 +0000 (11:48 +0000)]
Append LDFLAGS at the same time as CPPFLAGS and CXXFLAGS.

This deduplicates the addition of these flags.

6 years agoRelease v3.0.0 alpha 6.
Peter Powell [Sat, 17 Feb 2018 21:48:53 +0000 (21:48 +0000)]
Release v3.0.0 alpha 6.

6 years agoMove m_sslrehashsignal to the extra directory.
Peter Powell [Sat, 17 Feb 2018 17:44:17 +0000 (17:44 +0000)]
Move m_sslrehashsignal to the extra directory.

This module uses platform-specific behaviour that does not work on
Windows.

6 years agoFix building on Windows (mostly).
Peter Powell [Sat, 17 Feb 2018 17:12:26 +0000 (17:12 +0000)]
Fix building on Windows (mostly).

6 years agoImport the anticaps module from inspircd-extras.
Peter Powell [Tue, 30 Jan 2018 12:30:54 +0000 (12:30 +0000)]
Import the anticaps module from inspircd-extras.

6 years agoSend the ACCEPT and KEYLEN ISUPPORT tokens.
Peter Powell [Tue, 6 Feb 2018 15:01:30 +0000 (15:01 +0000)]
Send the ACCEPT and KEYLEN ISUPPORT tokens.

- The ACCEPT=[count] token specifies the maximum amount of nicks
  which can be added to a m_callerid accept list. This token was
  added by ircd-ratbox in 3.0.9.

- The KEYLEN=[length] token specifies the maximum length of a
  channel key. This token was added by ircd-ratbox in 3.1 beta.

For more info see http://defs.ircdocs.horse/defs/isupport.html

6 years agoAllow the maximum length of a chanfilter message to be configured.
Peter Powell [Wed, 6 Sep 2017 07:48:19 +0000 (08:48 +0100)]
Allow the maximum length of a chanfilter message to be configured.

6 years agoAdd names for a bunch of numerics.
Peter Powell [Sat, 27 Jan 2018 12:24:47 +0000 (12:24 +0000)]
Add names for a bunch of numerics.

6 years agoAdd ERR_INVALIDMODEPARAM for responding to invalid mode params.
Peter Powell [Sat, 27 Jan 2018 13:05:14 +0000 (13:05 +0000)]
Add ERR_INVALIDMODEPARAM for responding to invalid mode params.

Currently on invalid modes we do a combination of different things:

1. Send a custom mode-specific numeric (which often collides with
   other modes).

2. Send a server notice.

3. Do absolutely nothing.

This new numeric is a generic way of handling invalid parameters
when setting a mode that avoids all of the mistakes of the previous
behaviour.

6 years agoImprove performance under load of OnDataReady and remove C-isms.
systocrat [Mon, 1 Jan 2018 23:01:00 +0000 (01:01 +0200)]
Improve performance under load of OnDataReady and remove C-isms.

Re-use variables initialized within loop, const-ify config variables
accessed repeatedly, remove eol_found label.

Merges #1451.

6 years agoAdd a module which rehashes SSL modules on receiving SIGUSR1.
Peter Powell [Thu, 25 Jan 2018 11:51:14 +0000 (11:51 +0000)]
Add a module which rehashes SSL modules on receiving SIGUSR1.

This has been imported from inspircd-extras where it was known as
m_rehashsslsignal. The name has been changed slightly to match the
other modules which do SSL stuff (sslmodes, sslinfo).

6 years agoPass an irc::socket::sockaddrs to SocketEngine::SendTo().
Peter Powell [Sat, 20 Jan 2018 12:24:35 +0000 (12:24 +0000)]
Pass an irc::socket::sockaddrs to SocketEngine::SendTo().

6 years agoPass an irc::socket::sockaddrs to SocketEngine::Connect().
Peter Powell [Sat, 20 Jan 2018 12:08:09 +0000 (12:08 +0000)]
Pass an irc::socket::sockaddrs to SocketEngine::Connect().

6 years agoRemove duplicated code in LocalUser::GetServerPort().
Peter Powell [Sat, 20 Jan 2018 00:32:31 +0000 (00:32 +0000)]
Remove duplicated code in LocalUser::GetServerPort().

6 years agoFix some minor Doxygen errors.
Peter Powell [Sun, 14 Jan 2018 18:07:05 +0000 (18:07 +0000)]
Fix some minor Doxygen errors.

6 years agoRelease v3.0.0 alpha 5.
Peter Powell [Fri, 12 Jan 2018 14:57:56 +0000 (14:57 +0000)]
Release v3.0.0 alpha 5.

6 years agoFix some char signedness oversights when using bitsets.
Peter Powell [Sun, 7 Jan 2018 23:28:01 +0000 (23:28 +0000)]
Fix some char signedness oversights when using bitsets.

6 years agoAdd user mode +z for ssl-only private messages.
Shawn Smith [Wed, 3 Apr 2013 14:59:12 +0000 (10:59 -0400)]
Add user mode +z for ssl-only private messages.

Closes #468.

6 years agoStrip commas from channel keys like Charybdis and others do.
Peter Powell [Fri, 10 Nov 2017 16:03:37 +0000 (16:03 +0000)]
Strip commas from channel keys like Charybdis and others do.

6 years agoRework message handling.
Peter Powell [Mon, 11 Dec 2017 19:42:52 +0000 (19:42 +0000)]
Rework message handling.

- Move all message-related types to their own header to make moving
  them to a cross-module events easier.
- Rename OnUserMessage to OnUserPostMessage.
- Rename OnText to OnUserMessage.
- Replace the dest, target_type, and status parameters with the
  MessageTarget class.
- Replace the text, exempt_list, and msgtype parameters with the
  MessageDetails struct.
- Add echooriginal and originaltext to the MessageDetails struct
  to allow spam filtering to not be broken by cap echo-message.

6 years agoImprove the method that blockcaps uses to block messages.
Peter Powell [Mon, 1 Jan 2018 18:01:47 +0000 (18:01 +0000)]
Improve the method that blockcaps uses to block messages.

Previously it had a list of upper case letters and assumed that all
other characters were lower case. This method is flawed as it can
be evaded by using non-alphanumeric characters.

The new method takes a list of lower case letters as well as upper
case letters and ignores any letters which are not listed in one of
the two lists.

The majority of the code for this was borrowed from the m_anticaps
module in inspircd-extras.

6 years agoFix m_chanhistory sending the history notice directly to the user.
Peter Powell [Wed, 3 Jan 2018 16:24:19 +0000 (16:24 +0000)]
Fix m_chanhistory sending the history notice directly to the user.

Closes #1452.

6 years agoMake InspIRCd::Format return std::string instead of const char*.
Peter Powell [Mon, 1 Jan 2018 23:56:35 +0000 (23:56 +0000)]
Make InspIRCd::Format return std::string instead of const char*.

Using the latter is problematic as if you don't copy the return
value before calling Format again your formatted message will be
overwritten by something else. This bug was observed in m_callerid
where InspIRCd::Format was being used for formatting two arguments
the latter of which was being overwritten with the former.

We could have preserved the return type and just copied the string
but then callers would have had to deallocate the string once they
have finished with it which is an undesirabable burden to put on
callers.

6 years agoIncrease the config default for <chanhistory:maxlines> to 50.
Peter Powell [Sun, 31 Dec 2017 18:38:21 +0000 (18:38 +0000)]
Increase the config default for <chanhistory:maxlines> to 50.

6 years agoDon't hardcode mode characters which are sent in 005 tokens.
Peter Powell [Fri, 29 Dec 2017 23:53:44 +0000 (23:53 +0000)]
Don't hardcode mode characters which are sent in 005 tokens.

6 years agoFix various issues with the cgiirc module.
Peter Powell [Wed, 27 Dec 2017 13:06:12 +0000 (13:06 +0000)]
Fix various issues with the cgiirc module.

- Respect the value of <cgiirc:opernotice> when sending snotices
  to operators.
- Write to the log file if opernotice is disabled.
- Log to the correct snomask in all cases. This was caused by an
  oversight when merging insp20 into master.
- Replace the full user mask in log messages with a uuid/ip. The
  WEBIRC command is sent as the first command so there will not be
  a nickname or username at this point.

6 years agoUse a bitset in blockcaps instead of a char array.
Peter Powell [Sat, 23 Dec 2017 15:56:23 +0000 (15:56 +0000)]
Use a bitset in blockcaps instead of a char array.

6 years agoUse a bitset in chghost/sethost instead of a char array.
Peter Powell [Sat, 23 Dec 2017 14:53:57 +0000 (14:53 +0000)]
Use a bitset in chghost/sethost instead of a char array.

6 years agoFix User::ChangeRealHost() to change the real host properly.
Peter Powell [Sat, 23 Dec 2017 14:45:36 +0000 (14:45 +0000)]
Fix User::ChangeRealHost() to change the real host properly.

6 years agoAdd ISUPPORT tokens for the host, line, and user length.
Peter Powell [Sun, 3 Dec 2017 13:40:33 +0000 (13:40 +0000)]
Add ISUPPORT tokens for the host, line, and user length.

This allows clients to accurately predict the maximum safe length
of a NOTICE or PRIVMSG and truncate/split as appropriate.

As proposed at https://defs.ircdocs.horse/defs/isupport.html

6 years agoGet rid of InspIRCd::QuickExit.
Peter Powell [Sun, 10 Dec 2017 13:48:57 +0000 (13:48 +0000)]
Get rid of InspIRCd::QuickExit.

This is just a thin wrapper around exit(). I don't think we really
need it.

While we are changing this code the setgroup/setuser code should be
using EXIT_STATUS_CONFIG too.

6 years agoImprove and modernize the SQL system API.
Peter Powell [Fri, 22 Dec 2017 02:47:54 +0000 (02:47 +0000)]
Improve and modernize the SQL system API.

- Move everything into the SQL namespace and drop the SQL prefix.
- Move SQLProvider::PopulateUserInfo to SQL::PopulateUserInfo.
- Rename SQLEntry to SQL::Field and clean up.
- Rename SQLEntries to SQL::Row.
- Rename SQLerror to SQL::Error and clean up.
- Rename SQLerrorNum to SQL::ErrorCode and drop the SQL_ prefix.
- Rename ParamL to SQL::ParamList.
- Rename ParamM to SQL::ParamMap;
- Make implementing SQLQuery::OnError mandatory.
- Redo most of the documentation in the sql header.

6 years agoMerge pull request #1446 from B00mX0r/master+wrongnumeric
Peter Powell [Fri, 22 Dec 2017 12:12:36 +0000 (12:12 +0000)]
Merge pull request #1446 from B00mX0r/master+wrongnumeric

Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics

Closes #1122.

6 years agoFixed misc. instances of ERR_NOSUCHNICK instead of channel numerics
B00mX0r [Tue, 19 Dec 2017 22:15:30 +0000 (14:15 -0800)]
Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics
Per #1122

6 years agoRename <security:hidewhois> to <security:hideserver>.
Peter Powell [Fri, 15 Dec 2017 23:26:15 +0000 (23:26 +0000)]
Rename <security:hidewhois> to <security:hideserver>.

The previous name was horrible and didn't describe what the setting
actually does.

6 years agoMerge pull request #1443 from B00mX0r/master+filtershun
Peter Powell [Fri, 22 Dec 2017 01:08:22 +0000 (01:08 +0000)]
Merge pull request #1443 from B00mX0r/master+filtershun

Add SHUN as a /filter action

6 years agoAdd SHUN as a /filter action
B00mX0r [Tue, 19 Dec 2017 17:29:50 +0000 (09:29 -0800)]
Add SHUN as a /filter action
This resolves #483

6 years agoMerge pull request #1370 from clinew/insp30+openssl-crl
Peter Powell [Thu, 21 Dec 2017 12:32:27 +0000 (12:32 +0000)]
Merge pull request #1370 from clinew/insp30+openssl-crl

Add OpenSSL CRLs.

6 years agoMerge pull request #1444 from B00mX0r/master+missingsno
Peter Powell [Wed, 20 Dec 2017 20:54:38 +0000 (20:54 +0000)]
Merge pull request #1444 from B00mX0r/master+missingsno

Add snomask alert on m_filter quit/part G-Line

6 years agoMerge pull request #1445 from B00mX0r/master+nickmsg
Peter Powell [Wed, 20 Dec 2017 10:44:04 +0000 (10:44 +0000)]
Merge pull request #1445 from B00mX0r/master+nickmsg

Clarify error message when attempting to /NICK while banned

6 years agoClarify error message when attempting to /NICK while banned
B00mX0r [Tue, 19 Dec 2017 21:50:20 +0000 (13:50 -0800)]
Clarify error message when attempting to /NICK while banned

6 years agoAdd snomask alert on m_filter quit/part G-Line
B00mX0r [Tue, 19 Dec 2017 21:06:22 +0000 (13:06 -0800)]
Add snomask alert on m_filter quit/part G-Line
Resolves an oversight of #1264

6 years agoMerge pull request #1442 from B00mX0r/master+map_version
Peter Powell [Tue, 19 Dec 2017 18:41:55 +0000 (18:41 +0000)]
Merge pull request #1442 from B00mX0r/master+map_version

Show server versions in /MAP for opers

6 years agoShow server versions in /MAP for opers
B00mX0r [Tue, 19 Dec 2017 17:21:14 +0000 (09:21 -0800)]
Show server versions in /MAP for opers
This resolves #1203

6 years agoUse GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.
Peter Powell [Tue, 19 Dec 2017 17:49:48 +0000 (17:49 +0000)]
Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.

6 years agoOnly show a duration in m_chanhistory's notice if one is set.
Peter Powell [Sat, 16 Dec 2017 13:00:31 +0000 (13:00 +0000)]
Only show a duration in m_chanhistory's notice if one is set.

Closes #1235.

6 years agoRemove usage of deprecated API members in m_ssl_openssl.
Peter Powell [Fri, 15 Dec 2017 10:48:33 +0000 (10:48 +0000)]
Remove usage of deprecated API members in m_ssl_openssl.

Closes #1440.

6 years agoAdd OpenSSL CRLs.
Wade Cline [Sat, 16 Sep 2017 22:11:53 +0000 (15:11 -0700)]
Add OpenSSL CRLs.

The 'crlfile' argument can point to a file that contains valid CRLs.
The 'crlpath' argument can point to a directory which contains CRLs,
albeit in OpenSSL's special hashed/symlink format.  The 'crlmode' option
'chain' checks all certificates in the chain while the option 'leaf'
checks only the leaf certificate in a chain.

6 years agoDon't allow users to set a zero channel limit.
Peter Powell [Mon, 11 Dec 2017 13:16:06 +0000 (13:16 +0000)]
Don't allow users to set a zero channel limit.

Closes #451.

6 years agoRelease v3.0.0 alpha 4.
Peter Powell [Mon, 11 Dec 2017 11:53:03 +0000 (11:53 +0000)]
Release v3.0.0 alpha 4.

6 years agoMerge branch 'insp20' into master.
Peter Powell [Mon, 11 Dec 2017 11:41:44 +0000 (11:41 +0000)]
Merge branch 'insp20' into master.

6 years agoMerge pull request #1423 from B00mX0r/master+override_umode
Peter Powell [Mon, 11 Dec 2017 11:14:25 +0000 (11:14 +0000)]
Merge pull request #1423 from B00mX0r/master+override_umode

Add optional oper override umode +O.

6 years agoAdd optional oper override umode +O.
B00mX0r [Mon, 27 Nov 2017 05:46:10 +0000 (21:46 -0800)]
Add optional oper override umode +O.

6 years agoEnsure that ModeParser doesn't try to process a non-existent mode.
B00mX0r [Sun, 3 Dec 2017 22:36:57 +0000 (14:36 -0800)]
Ensure that ModeParser doesn't try to process a non-existent mode.

This fixes #1431 and closes #1432.

6 years agoRequire that the services server be configured in <sasl:target>.
Peter Powell [Sun, 10 Dec 2017 13:59:30 +0000 (13:59 +0000)]
Require that the services server be configured in <sasl:target>.

Closes #1430.

6 years agoExtract RFC modes from the core to core_channel and core_user.
Peter Powell [Sun, 3 Dec 2017 17:16:28 +0000 (17:16 +0000)]
Extract RFC modes from the core to core_channel and core_user.

6 years agoClean up numeric usage in WHOIS and WHOWAS.
Peter Powell [Sat, 9 Dec 2017 16:12:00 +0000 (16:12 +0000)]
Clean up numeric usage in WHOIS and WHOWAS.

- Add constants for all of the used numerics.

- Switch RPL_CHANNELSMSG from 336 to 651 to avoid a conflict with
  RPL_INVITELIST from ircd-hybrid.

- Switch RPL_WHOWASIP from 379 to 652 to avoid a conflict with
  RPL_WHOISMODES from UnrealIRCd.

6 years agoAdd names for a bunch more numerics.
Peter Powell [Sat, 9 Dec 2017 13:43:44 +0000 (13:43 +0000)]
Add names for a bunch more numerics.

6 years agoClean up m_password_hash slightly.
Peter Powell [Sun, 3 Dec 2017 21:55:01 +0000 (21:55 +0000)]
Clean up m_password_hash slightly.

- Get rid of MakeHash and inline the logic into the actual handler.
- Return CMD_FAILURE when password hashing fails for some reason.
- Change the module name and description to be more accurate.

6 years agoSend a snotice when m_filter kills or G-Lines a client.
ThatOneRoadie [Mon, 5 Dec 2016 21:06:30 +0000 (14:06 -0700)]
Send a snotice when m_filter kills or G-Lines a client.

Closes #1264.

6 years agoAdd SSL cert info to connect class debug log.
Christopher 'm4z' Holm [Sun, 15 Sep 2013 14:25:29 +0000 (16:25 +0200)]
Add SSL cert info to connect class debug log.

Closes #634.

6 years agoRemoved config option for +L redirect.
Shawn Smith [Mon, 26 May 2014 07:18:55 +0000 (03:18 -0400)]
Removed config option for +L redirect.

Closes #466.

6 years agoMove OnSync{Channel,Network,User} to ServerEventListener.
Peter Powell [Wed, 22 Nov 2017 12:37:20 +0000 (12:37 +0000)]
Move OnSync{Channel,Network,User} to ServerEventListener.

6 years agoRename the spanningtree module header to server.
Peter Powell [Wed, 22 Nov 2017 12:13:42 +0000 (12:13 +0000)]
Rename the spanningtree module header to server.

In the future we will have server linking modules that are not the
spanningtree module.

6 years agoMerge pull request #1417 from B00mX0r/master+fix_1416
Peter Powell [Sun, 3 Dec 2017 13:51:36 +0000 (13:51 +0000)]
Merge pull request #1417 from B00mX0r/master+fix_1416

Fix m_cloaking umode desync

6 years agoMerge pull request #1428 from Chewsterchew/patch-1
Peter Powell [Sun, 3 Dec 2017 13:45:09 +0000 (13:45 +0000)]
Merge pull request #1428 from Chewsterchew/patch-1

Remove extra double quote (") from modules.conf

6 years agoRemove extra double quote (")
Chew [Sat, 2 Dec 2017 20:29:29 +0000 (14:29 -0600)]
Remove extra double quote (")

6 years agoBump the minimum versions of GnuTLS to 2.0.0 and OpenSSL to 1.0.0.
Peter Powell [Thu, 30 Nov 2017 14:17:13 +0000 (14:17 +0000)]
Bump the minimum versions of GnuTLS to 2.0.0 and OpenSSL to 1.0.0.

Old TLS libraries should not be used anymore due to security risks.

6 years agoImprove TLS security configuration in m_ssl_openssl.
Peter Powell [Thu, 30 Nov 2017 12:23:33 +0000 (12:23 +0000)]
Improve TLS security configuration in m_ssl_openssl.

- Always disable SSLv3. Unreal has already done this so clients
  will have to upgrade anyway.

- Disable TLSv1.0 by default. Various security standards (e.g.
  PCI DSS) are already planning on sunsetting this so we should
  too.

6 years agoMerge INSPIRCD_MODULE and INSPIRCD_TARGET.
Peter Powell [Wed, 18 Oct 2017 16:16:32 +0000 (17:16 +0100)]
Merge INSPIRCD_MODULE and INSPIRCD_TARGET.

6 years agoUse ERR_INVALIDUSERNAME rather than ERR_NEEDMOREPARAMS in USER.
Peter Powell [Tue, 28 Nov 2017 18:41:41 +0000 (18:41 +0000)]
Use ERR_INVALIDUSERNAME rather than ERR_NEEDMOREPARAMS in USER.

This numeric is a lot more friendly for clients to deal with.

6 years agoAdd length checking to GetExtBanStatus and m_banexception.
Peter Powell [Mon, 27 Nov 2017 14:13:42 +0000 (14:13 +0000)]
Add length checking to GetExtBanStatus and m_banexception.

As far as I can tell this is not a problem as all ban masks are
canonicalised but its better to be safe than sorry.

6 years agoAssume that RUSAGE_SELF is always defined.
Peter Powell [Mon, 27 Nov 2017 22:10:14 +0000 (22:10 +0000)]
Assume that RUSAGE_SELF is always defined.

This was added for Red Hat 7 which was released in 2000(!) which
nobody should be using anymore.

6 years agoMerge pull request #1421 from B00mX0r/master+fix_extbans
Peter Powell [Mon, 27 Nov 2017 14:02:44 +0000 (14:02 +0000)]
Merge pull request #1421 from B00mX0r/master+fix_extbans

Fix action extbans not triggering (resolves #1420)

6 years agoFix m_cloaking umode syncing
B00mX0r [Sat, 25 Nov 2017 19:53:42 +0000 (11:53 -0800)]
Fix m_cloaking umode syncing
Servers will now correctly show whether a remote user has +x or not.

6 years agoFix action extbans not triggering
B00mX0r [Sun, 26 Nov 2017 22:14:12 +0000 (14:14 -0800)]
Fix action extbans not triggering
This fixes a reversion from ebe5b20

6 years agoConvert the remaining things away from the caller/handler API.
Peter Powell [Sat, 25 Nov 2017 13:01:53 +0000 (13:01 +0000)]
Convert the remaining things away from the caller/handler API.

6 years agoConvert GenRandom to std::function.
Peter Powell [Sat, 25 Nov 2017 12:50:11 +0000 (12:50 +0000)]
Convert GenRandom to std::function.

6 years agoConvert IsChannel to std::function.
Peter Powell [Sat, 25 Nov 2017 12:37:48 +0000 (12:37 +0000)]
Convert IsChannel to std::function.