]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
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.

6 years agoConvert IsIdent to std::function.
Peter Powell [Sat, 25 Nov 2017 12:29:05 +0000 (12:29 +0000)]
Convert IsIdent to std::function.

6 years agoConvert IsNick to std::function.
Peter Powell [Sat, 25 Nov 2017 12:15:35 +0000 (12:15 +0000)]
Convert IsNick to std::function.

6 years agoFix a minor typo in core_channel.
Peter Powell [Sat, 25 Nov 2017 13:37:23 +0000 (13:37 +0000)]
Fix a minor typo in core_channel.

6 years agoRemove the preconfigured Charybdis and UnrealIRCd module files.
Peter Powell [Wed, 22 Nov 2017 13:06:11 +0000 (13:06 +0000)]
Remove the preconfigured Charybdis and UnrealIRCd module files.

These are extremely outdated. If we want to ship these then they
should be redone from scratch.

6 years agoAdd the override keyword in places that it is missing.
Peter Powell [Tue, 21 Nov 2017 13:05:17 +0000 (13:05 +0000)]
Add the override keyword in places that it is missing.

GCCs warnings for this are much better than Clangs.

6 years agoInherit non-core connect class settings properly.
Peter Powell [Sat, 21 Oct 2017 21:48:29 +0000 (22:48 +0100)]
Inherit non-core connect class settings properly.

Based partially on a patch by Attila.

6 years agoImprove LIST and implement more extended list features.
Peter Powell [Wed, 15 Nov 2017 02:35:15 +0000 (02:35 +0000)]
Improve LIST and implement more extended list features.

- Move the ISUPPORT token from the core into core_user and start
  sending the SAFELIST token to let clients know that they can
  safely run LIST on big servers.

- Add support for the channel creation time (C), topic set time
  (T), and inverted glob match (N) filters as specified in the
  draft-hardy-irc-isupport-00 specification.

- Clean up the logic for filtering channels by user count.

6 years agoFix a ton of -Wsign-conversion warnings.
Peter Powell [Fri, 17 Nov 2017 00:02:03 +0000 (00:02 +0000)]
Fix a ton of -Wsign-conversion warnings.

6 years agoAdd events which are fired when a service is added or deleted.
Attila Molnar [Fri, 18 Nov 2016 16:30:38 +0000 (17:30 +0100)]
Add events which are fired when a service is added or deleted.

6 years agoMerge pull request #1413 from B00mX0r/insp20
Peter Powell [Wed, 15 Nov 2017 04:17:15 +0000 (04:17 +0000)]
Merge pull request #1413 from B00mX0r/insp20

Fix referring to sqloper and sqlauth as extras in modules.conf.example.

6 years agoFix referring to sqloper and sqlauth as extras in modules.conf
B00mX0r [Wed, 15 Nov 2017 04:07:54 +0000 (20:07 -0800)]
Fix referring to sqloper and sqlauth as extras in modules.conf

6 years agoAdd a class which encapsulates the concept of token lists.
Peter Powell [Thu, 17 Aug 2017 17:32:19 +0000 (18:32 +0100)]
Add a class which encapsulates the concept of token lists.

6 years agoRelease v3.0.0 alpha 3.
Peter Powell [Mon, 13 Nov 2017 17:55:59 +0000 (17:55 +0000)]
Release v3.0.0 alpha 3.

6 years agoUnite SSL service providers and SSL profile classes
Attila Molnar [Tue, 10 Jan 2017 19:21:57 +0000 (20:21 +0100)]
Unite SSL service providers and SSL profile classes

6 years agoOnly subclass Simple{Channel,User}ModeHandler when necessary.
Peter Powell [Sun, 12 Nov 2017 20:53:24 +0000 (20:53 +0000)]
Only subclass Simple{Channel,User}ModeHandler when necessary.

6 years agoAdd the m_ircv3_sts module which implements the IRCv3 STS spec.
Peter Powell [Sun, 29 Oct 2017 05:58:16 +0000 (05:58 +0000)]
Add the m_ircv3_sts module which implements the IRCv3 STS spec.

6 years agoMerge tag 'v2.0.25' into master.
Peter Powell [Sun, 12 Nov 2017 17:33:21 +0000 (17:33 +0000)]
Merge tag 'v2.0.25' into master.

6 years agoRelease v2.0.25
Peter Powell [Sun, 12 Nov 2017 15:55:01 +0000 (15:55 +0000)]
Release v2.0.25

6 years agoDon't mess with the encoding of extras modules in modulemanager.
Peter Powell [Sun, 12 Nov 2017 14:33:08 +0000 (14:33 +0000)]
Don't mess with the encoding of extras modules in modulemanager.

This fixes installing extras modules such as m_qrcode which contain
characters from outside of the Unicode Basic Multilingual Plane.

6 years agoVarious minor documentation fixes.
Peter Powell [Sun, 12 Nov 2017 11:58:49 +0000 (11:58 +0000)]
Various minor documentation fixes.

- Remind admins that not setting a DIE/RESTART password does not
  disable use of those commands.
- Remove references to 1.2 and modules being able to create custom
  logging methods. This was never implemented in the 2.0 branch.
- Remove references to an SASL improvement that was reverted.
- Update various InspIRCd website links to use HTTPS over HTTP.
- Update a link to the IRCv3 website to point to the new website.

6 years agoWork around removing shuns on nicks when the nick is online.
Peter Powell [Tue, 7 Nov 2017 18:18:35 +0000 (18:18 +0000)]
Work around removing shuns on nicks when the nick is online.

6 years agoRevert the code changes to m_sasl made in commit 9d4b4344b4.
Peter Powell [Thu, 9 Nov 2017 11:04:52 +0000 (11:04 +0000)]
Revert the code changes to m_sasl made in commit 9d4b4344b4.

This is causing problems such as duplicate 904 messages.

6 years agoAllow spaces in the network name now it doesn't cause problems.
Peter Powell [Thu, 9 Nov 2017 10:05:09 +0000 (10:05 +0000)]
Allow spaces in the network name now it doesn't cause problems.

This will not cause any compatibility issues as we do not rely on
this attribute internally.

6 years agoImplement support for draft-brocklesby-irc-isupport-03 escapes.
Peter Powell [Thu, 9 Nov 2017 10:04:58 +0000 (10:04 +0000)]
Implement support for draft-brocklesby-irc-isupport-03 escapes.

6 years agoMerge pull request #1255 from genius3000/insp20+timedbans
Peter Powell [Tue, 7 Nov 2017 14:15:50 +0000 (14:15 +0000)]
Merge pull request #1255 from genius3000/insp20+timedbans

2.0: Fix various inconsistencies in m_timedbans.

6 years agoImprove (synchronize) the notices in m_timedbans
genius3000 [Tue, 22 Nov 2016 05:00:27 +0000 (22:00 -0700)]
Improve (synchronize) the notices in m_timedbans

* Send to remote servers upon setting
* Send to halfop if available upon expiry

6 years agoMerge pull request #1359 from genius3000/insp20+sasl_no_server
Peter Powell [Mon, 6 Nov 2017 11:11:22 +0000 (11:11 +0000)]
Merge pull request #1359 from genius3000/insp20+sasl_no_server

2.0: Inform the client when a SASL message cannot be sent

6 years agoEnable using m_customprefix to alter core prefix modes.
Peter Powell [Fri, 20 Oct 2017 07:01:27 +0000 (08:01 +0100)]
Enable using m_customprefix to alter core prefix modes.

This replaces the devoice module which has now been removed. If you
want users to be able to devoice themselves then you can load the
customprefix module add the following config tag:

    <customprefix name="voice" depriv="yes">

If you wish to keep identical behaviour rather than allowing users
to use "MODE #YourChannel -v TheirNick" then you can load the alias
module and add the following config tag:

    <alias text="DEVOICE" format="#*" replace="MODE $2 -v $nick">

6 years agoClean up the configuration reading in m_customprefix.
Peter Powell [Fri, 20 Oct 2017 06:07:49 +0000 (07:07 +0100)]
Clean up the configuration reading in m_customprefix.

- Rework the code flow to be more readable.
- Ensure that the name is well formed.
- Allow prefix modes with a rank of zero.

6 years agoMove depriv from m_customprefix into PrefixMode.
Peter Powell [Fri, 20 Oct 2017 05:24:19 +0000 (06:24 +0100)]
Move depriv from m_customprefix into PrefixMode.

6 years agoAdd support for setting the unset rank in ModeHandler.
Peter Powell [Wed, 18 Oct 2017 02:40:31 +0000 (03:40 +0100)]
Add support for setting the unset rank in ModeHandler.