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

6 years agoFix an unhandled exception crash when rehashing modules.
Peter Powell [Mon, 6 Nov 2017 00:29:51 +0000 (00:29 +0000)]
Fix an unhandled exception crash when rehashing modules.

Previously we used FOREACH_MOD to call OnRehash which handled any
thrown exceptions. When we switched to ReadConfig this stopped
being the case.

This bug was introduced in c202dea024.

6 years agoFix some SSL module issues.
Peter Powell [Wed, 1 Nov 2017 17:23:00 +0000 (17:23 +0000)]
Fix some SSL module issues.

- Use the same dhparams name in m_ssl_openssl as in other modules.
- Fix building m_ssl_mbedtls.

6 years agoMake core_hostname_lookup redo the lookup when a user's IP changes.
Peter Powell [Mon, 30 Oct 2017 19:34:56 +0000 (19:34 +0000)]
Make core_hostname_lookup redo the lookup when a user's IP changes.

This removes the need to do lookups in the cgiirc module. This is
useful as relying on gateways to do proper DNS checks is unreliable
and has resulted in issues like 5fc4403f62. Its more sane if we do
our own lookups.

This change has been okayed by multiple WEBIRC gateway authors so
I don't think it will cause many problems.

6 years agoAdd support to IOHook for retrieving the hostname sent via SNI.
Peter Powell [Sun, 29 Oct 2017 11:15:47 +0000 (11:15 +0000)]
Add support to IOHook for retrieving the hostname sent via SNI.

6 years agoHide User#host and User#dhost and use accessors to modify them.
Peter Powell [Sun, 22 Oct 2017 20:53:24 +0000 (21:53 +0100)]
Hide User#host and User#dhost and use accessors to modify them.

This removes the need to invalidate the cache after changing a
user's hostname.

6 years agoChange SetClientIP to take a C++ string instead of a char array.
Peter Powell [Fri, 27 Oct 2017 18:15:23 +0000 (19:15 +0100)]
Change SetClientIP to take a C++ string instead of a char array.

6 years agoMove Shutter to former contributors & thank genius3000, Sheogorath.
Peter Powell [Sun, 22 Oct 2017 16:13:02 +0000 (17:13 +0100)]
Move Shutter to former contributors & thank genius3000, Sheogorath.

6 years agoDeduplicate error handling in the socket engines.
Peter Powell [Sun, 22 Oct 2017 02:10:48 +0000 (03:10 +0100)]
Deduplicate error handling in the socket engines.

6 years agoConvert GetMaxFds() to size_t and deduplicate setting code.
Peter Powell [Sun, 22 Oct 2017 01:27:25 +0000 (02:27 +0100)]
Convert GetMaxFds() to size_t and deduplicate setting code.

6 years agoRemove support for the Solaris IOCP socket engine.
Peter Powell [Sun, 22 Oct 2017 14:10:49 +0000 (15:10 +0100)]
Remove support for the Solaris IOCP socket engine.

After discussing this with Adam we have decided that there is very
little point in keeping this now that Solaris has been killed. Any
legacy Solaris users will have to make do with poll.

This change does not affect users of Solaris forks like Illumos as
they have support for epoll which will have already been selected
over Solaris IOCP by configure.

6 years agoMerge pull request #1407 from genius3000/master+update_helpop_extbans
Peter Powell [Sun, 22 Oct 2017 14:19:11 +0000 (15:19 +0100)]
Merge pull request #1407 from genius3000/master+update_helpop_extbans

Helpop Updates

6 years agoHelpop: Move extban 'U' from acting to matching
genius3000 [Sun, 22 Oct 2017 00:59:24 +0000 (18:59 -0600)]
Helpop: Move extban 'U' from acting to matching

6 years agoHelpop: Add extban 'n' - connect class ban
genius3000 [Sun, 22 Oct 2017 00:56:29 +0000 (18:56 -0600)]
Helpop: Add extban 'n' - connect class ban

Commit a54497e added m_classban, this updates the helpop files.

6 years agosocketengine_poll: fix initialization fd_mappings
Adam [Sun, 22 Oct 2017 00:27:10 +0000 (20:27 -0400)]
socketengine_poll: fix initialization fd_mappings

6 years agoRemove CMD_EPERM as it is not used anywhere.
Peter Powell [Sat, 21 Oct 2017 21:13:15 +0000 (22:13 +0100)]
Remove CMD_EPERM as it is not used anywhere.

6 years agoTweak the module flags in MODULES slightly.
Peter Powell [Wed, 18 Oct 2017 00:52:51 +0000 (01:52 +0100)]
Tweak the module flags in MODULES slightly.

Using unique letters for each flag makes it easier to read when
using fonts which have similar glyphs for upper and lower case
characters.

6 years agoAdd PackageInfo directives for Debian.
Peter Powell [Fri, 11 Aug 2017 16:24:30 +0000 (17:24 +0100)]
Add PackageInfo directives for Debian.

6 years agoAdd a helper function for calling the OnCheckExemption event.
Peter Powell [Sat, 21 Oct 2017 15:34:48 +0000 (16:34 +0100)]
Add a helper function for calling the OnCheckExemption event.

6 years agoSwitch the default datetime format to something easier to read.
Peter Powell [Fri, 20 Oct 2017 03:50:36 +0000 (04:50 +0100)]
Switch the default datetime format to something easier to read.

6 years agoSwitch from std::stringstream to irc::spacesepstream.
Peter Powell [Thu, 19 Oct 2017 10:55:17 +0000 (11:55 +0100)]
Switch from std::stringstream to irc::spacesepstream.

The latter is more suited to the things we have previously been
using std::stringstream for.

6 years agoAdd a constructor to OperInfo and use it to set the type name.
Peter Powell [Mon, 16 Oct 2017 01:37:57 +0000 (02:37 +0100)]
Add a constructor to OperInfo and use it to set the type name.

6 years agoClean up OnCleanup.
Peter Powell [Wed, 18 Oct 2017 11:41:37 +0000 (12:41 +0100)]
Clean up OnCleanup.

- Switch to using ExtensionItem::ExtensibleType for the type instead
of TargetTypeFlags.
- Pass the extensible to OnCleanup as an Extensible pointer
instead of a void pointer.
- Call OnCleanup for memberships as well as channels and users.
- Rewrite event documentation to remove outdated references.

6 years agoIgnore <module> tags for modules that are already loaded.
Peter Powell [Wed, 18 Oct 2017 03:00:04 +0000 (04:00 +0100)]
Ignore <module> tags for modules that are already loaded.

This allows us to do user friendly things like loading the alias
module in the example alias files.

6 years agoClean up the command disabling logic.
Peter Powell [Mon, 16 Oct 2017 03:14:37 +0000 (04:14 +0100)]
Clean up the command disabling logic.

- Read the disabled command list in ApplyDisabledCommands() instead
  of storing it in a global which is only accessed on rehash.
- Write debug messages to the log when disabling commands.
- Use irc::spacesepstream instead of std::stringstream.

6 years agoUn-constify the private fields of WebIRCHost.
Peter Powell [Sun, 15 Oct 2017 23:10:02 +0000 (00:10 +0100)]
Un-constify the private fields of WebIRCHost.

These being constant causes problems on older compilers that don't
elide the temporary copy when adding to the host list.

6 years agoClean up the initialization of ConnectClass and ServerConfig.
attilamolnar [Tue, 18 Jun 2013 19:26:54 +0000 (21:26 +0200)]
Clean up the initialization of ConnectClass and ServerConfig.

6 years agoRewrite the configuration documentation for m_cgiirc.
Peter Powell [Sun, 15 Oct 2017 18:41:47 +0000 (19:41 +0100)]
Rewrite the configuration documentation for m_cgiirc.

6 years agoAdd support for WEBIRC blocks authenticating using client certs.
Peter Powell [Sun, 15 Oct 2017 15:43:12 +0000 (16:43 +0100)]
Add support for WEBIRC blocks authenticating using client certs.

6 years agoShow the gateway, realhost, and realip in WHOIS for cgiirc clients.
Peter Powell [Sun, 15 Oct 2017 15:19:03 +0000 (16:19 +0100)]
Show the gateway, realhost, and realip in WHOIS for cgiirc clients.

This mirrors a similar feature in ircd-hybrid but using a different
numeric that is not already taken in InspIRCd.

6 years agoClean up the WEBIRC command handler.
Peter Powell [Sun, 15 Oct 2017 13:00:29 +0000 (14:00 +0100)]
Clean up the WEBIRC command handler.

- Fix the extremely broken indentation.
- Simplify the HandleLocal code flow.
- Improve the notices sent to operators.

6 years agoAdd support for hashed WebIRC passwords to m_cgiirc.
Peter Powell [Sun, 15 Oct 2017 12:38:50 +0000 (13:38 +0100)]
Add support for hashed WebIRC passwords to m_cgiirc.

6 years agoRewrite the m_cgiirc configuration handling.
Peter Powell [Sun, 15 Oct 2017 11:50:28 +0000 (12:50 +0100)]
Rewrite the m_cgiirc configuration handling.

- Store ident hosts separately to WebIRC hosts.
- Throw exceptions when the configuration is invalid.

6 years agoRemove INSPIRCD_SOCKETENGINE_NAME and INSPIRCD_SYSTEM.
Peter Powell [Sun, 15 Oct 2017 01:15:35 +0000 (02:15 +0100)]
Remove INSPIRCD_SOCKETENGINE_NAME and INSPIRCD_SYSTEM.

- INSPIRCD_SOCKETENGINE_NAME is not really something that needs to
  be user facing. If opers want to know this kind of internal info
  then they can look at the build configuration.

- INSPIRCD_SYSTEM causes problems for reproducible builds and is
  only accurate for the state of the system when InspIRCd is built
  which is not useful in the slightest.

6 years agotest-build: Pass the make jobs as a separate argument.
Peter Powell [Sun, 15 Oct 2017 02:55:53 +0000 (03:55 +0100)]
test-build: Pass the make jobs as a separate argument.

The old way was only necessary when we supported BSD Make.

6 years agoRemove an outdated comment in cmd_user.
Peter Powell [Sun, 15 Oct 2017 00:27:07 +0000 (01:27 +0100)]
Remove an outdated comment in cmd_user.

We don't use C strings for storing the ident anymore.

6 years agoRelease v3.0.0 alpha 2.
Peter Powell [Thu, 12 Oct 2017 16:14:16 +0000 (17:14 +0100)]
Release v3.0.0 alpha 2.

6 years agoMerge the latest changes from insp20 into master.
Peter Powell [Thu, 12 Oct 2017 14:55:21 +0000 (15:55 +0100)]
Merge the latest changes from insp20 into master.

6 years agoMerge pull request #1361 from genius3000/master+rline_IP
Peter Powell [Thu, 12 Oct 2017 14:09:03 +0000 (15:09 +0100)]
Merge pull request #1361 from genius3000/master+rline_IP

Make RLines match against IP as well as host

6 years agoMerge pull request #1353 from SISheogorath/master+domainpart-cloaking
Peter Powell [Thu, 12 Oct 2017 14:07:45 +0000 (15:07 +0100)]
Merge pull request #1353 from SISheogorath/master+domainpart-cloaking

Make domainparts in m_cloaking configureable.

6 years agoFix a broken distro constraint in the m_ssl_gnutls PackageInfo.
Peter Powell [Thu, 12 Oct 2017 14:03:52 +0000 (15:03 +0100)]
Fix a broken distro constraint in the m_ssl_gnutls PackageInfo.

6 years agoClean up m_sasl slightly by making SendSASL take common params.
Peter Powell [Wed, 11 Oct 2017 11:00:44 +0000 (12:00 +0100)]
Clean up m_sasl slightly by making SendSASL take common params.

Also, fix a minor issue caused by the last insp20 merge.

6 years agoSend ERR_SASLTOOLONG when a client sends an oversized AUTHENTICATE.
Peter Powell [Wed, 11 Oct 2017 10:27:07 +0000 (11:27 +0100)]
Send ERR_SASLTOOLONG when a client sends an oversized AUTHENTICATE.

6 years agoInclude connection security with the SASL host information.
Peter Powell [Wed, 11 Oct 2017 11:15:05 +0000 (12:15 +0100)]
Include connection security with the SASL host information.

See atheme/atheme@b41753f740 for more details.

6 years agoDon't abort the SASL authentication in OnUserConnect.
Peter Powell [Tue, 10 Oct 2017 23:15:14 +0000 (00:15 +0100)]
Don't abort the SASL authentication in OnUserConnect.

SASL-3.2 allows SASL auth to happen post-registration so this is
no longer correct.

6 years agoGet rid of ReadCGIIRCExt() in m_sasl.
Peter Powell [Tue, 10 Oct 2017 23:11:26 +0000 (00:11 +0100)]
Get rid of ReadCGIIRCExt() in m_sasl.

This is unnecessary since 852dd0337a.

6 years agoMake domainparts configureable
Sheogorath [Tue, 27 Jun 2017 20:41:07 +0000 (22:41 +0200)]
Make domainparts configureable

6 years agoMake RLines match against IP as well as host
genius3000 [Sat, 5 Aug 2017 07:10:32 +0000 (01:10 -0600)]
Make RLines match against IP as well as host

6 years agoConvert the AUTHENTICATE handler to use SplitCommand.
Peter Powell [Tue, 10 Oct 2017 23:10:29 +0000 (00:10 +0100)]
Convert the AUTHENTICATE handler to use SplitCommand.

6 years agoAdd a constant for the 477 numeric (ERR_NEEDREGGEDNICK).
Peter Powell [Wed, 11 Oct 2017 00:02:03 +0000 (01:02 +0100)]
Add a constant for the 477 numeric (ERR_NEEDREGGEDNICK).

6 years agoSend RPL_LOGGEDOUT to clients when they log out of their account.
Peter Powell [Wed, 11 Oct 2017 00:01:30 +0000 (01:01 +0100)]
Send RPL_LOGGEDOUT to clients when they log out of their account.

6 years agoFix the casemap name not being copied to the new ServerConfig.
Peter Powell [Thu, 5 Oct 2017 16:27:04 +0000 (17:27 +0100)]
Fix the casemap name not being copied to the new ServerConfig.

6 years agoFix a minor typo in the init script.
Peter Powell [Thu, 5 Oct 2017 15:51:16 +0000 (16:51 +0100)]
Fix a minor typo in the init script.

6 years agoFix RPL_SERVERVERSION treating the modes as a single parameter.
Peter Powell [Wed, 4 Oct 2017 13:10:19 +0000 (14:10 +0100)]
Fix RPL_SERVERVERSION treating the modes as a single parameter.

6 years agoSwitch the WEBIRC command to use SplitCommand.
Peter Powell [Sun, 1 Oct 2017 08:46:37 +0000 (09:46 +0100)]
Switch the WEBIRC command to use SplitCommand.

6 years agoRemove support for the pass, passfirst, identfirst cgiirc types.
Peter Powell [Sat, 9 Sep 2017 10:32:14 +0000 (11:32 +0100)]
Remove support for the pass, passfirst, identfirst cgiirc types.

These methods are not supported by any widely used gateways that I
can find. If your gateway uses this then you should rewrite it to
use the webirc method. For more details see the IRCv3 WEBIRC
specification at http://ircv3.net/specs/extensions/webirc.html.

6 years agoMerge pull request #1401 from emersonveenstra/configure-fix
Peter Powell [Tue, 26 Sep 2017 12:11:56 +0000 (13:11 +0100)]
Merge pull request #1401 from emersonveenstra/configure-fix

Fix SCRIPT_DIR directory change

6 years agoFix SCRIPT_DIR directory change
emerson [Mon, 25 Sep 2017 18:24:08 +0000 (14:24 -0400)]
Fix SCRIPT_DIR directory change

SCRIPT_DIR didn't automatically change directory if the user specified a
non-default directory

6 years agoFix the regex for parsing the git version in get_version.
Peter Powell [Mon, 25 Sep 2017 13:53:05 +0000 (14:53 +0100)]
Fix the regex for parsing the git version in get_version.

6 years agoAllow the script directory to be set in interactive mode.
Peter Powell [Sun, 24 Sep 2017 09:35:38 +0000 (10:35 +0100)]
Allow the script directory to be set in interactive mode.

6 years agoMove the init scripts out of the prefix into the new script dir.
Peter Powell [Thu, 21 Sep 2017 17:44:29 +0000 (18:44 +0100)]
Move the init scripts out of the prefix into the new script dir.

The previous directory was okay for home directory installs but
was problematic for system wide installs.

6 years agoConvert Disabled[CU]Modes to use a bitset instead of a char array.
Peter Powell [Mon, 11 Sep 2017 14:38:26 +0000 (15:38 +0100)]
Convert Disabled[CU]Modes to use a bitset instead of a char array.

6 years agoAdd ModeParser::IsModeChar to standardise mode validation.
Peter Powell [Mon, 11 Sep 2017 14:22:40 +0000 (15:22 +0100)]
Add ModeParser::IsModeChar to standardise mode validation.

6 years agoRaise the default listmode limit to 100 from 64.
Peter Powell [Thu, 14 Sep 2017 13:14:53 +0000 (14:14 +0100)]
Raise the default listmode limit to 100 from 64.

64 is a rather restrictive limit especially considering how fast
channels can accumulate bans. In fact, #InspIRCd hit the ban limit
in just over a year.

Having a low limit might have made sense when memory was expensive
but the average IRC server should be able to handle this fine now.

6 years agoFix the command for enabling m_sqlite3 in modules.conf.example.
Peter Powell [Thu, 14 Sep 2017 13:52:42 +0000 (14:52 +0100)]
Fix the command for enabling m_sqlite3 in modules.conf.example.

6 years agoChange FailedPortList to store a sockaddrs/int instead of string.
Peter Powell [Mon, 28 Aug 2017 18:28:53 +0000 (19:28 +0100)]
Change FailedPortList to store a sockaddrs/int instead of string.

6 years agoStore the server endpoint as a sockaddrs in ListenSocket.
Peter Powell [Mon, 28 Aug 2017 14:37:15 +0000 (15:37 +0100)]
Store the server endpoint as a sockaddrs in ListenSocket.

6 years agoGet rid of irc::sockets::satoap().
Peter Powell [Mon, 28 Aug 2017 14:13:25 +0000 (15:13 +0100)]
Get rid of irc::sockets::satoap().

This function is being misused in all but one scenario. It isn't
really worth keeping IMO.

6 years agoClean up the <security:runas{user,group}> code.
Peter Powell [Tue, 12 Sep 2017 13:28:20 +0000 (14:28 +0100)]
Clean up the <security:runas{user,group}> code.

- Get rid of unnecessary temporary values.
- Remove an erroneous usage comment.
- Reset errno before the call to setgroups.
- Unify the two stage initialisation of g/u.

6 years agoMove operquit out of the core and into core_user.
Peter Powell [Sun, 27 Aug 2017 20:11:12 +0000 (21:11 +0100)]
Move operquit out of the core and into core_user.

6 years agoFix killing elined clients on [gkz]line in some cases.
Peter Powell [Sat, 15 Jul 2017 17:04:26 +0000 (18:04 +0100)]
Fix killing elined clients on [gkz]line in some cases.

6 years agoFix m_cgiirc allowing malformed hosts sent via WEBIRC.
Peter Powell [Fri, 8 Sep 2017 19:47:10 +0000 (20:47 +0100)]
Fix m_cgiirc allowing malformed hosts sent via WEBIRC.

6 years agoImplement support for configurable casemapping & default to ASCII.
Peter Powell [Sun, 30 Jul 2017 16:34:05 +0000 (17:34 +0100)]
Implement support for configurable casemapping & default to ASCII.

6 years agoMove RPL_SYNTAX to 650 to prevent a collision with RPL_TEXT.
Peter Powell [Sat, 2 Sep 2017 18:53:48 +0000 (19:53 +0100)]
Move RPL_SYNTAX to 650 to prevent a collision with RPL_TEXT.

Also move the command name to a parameter so that it is more easily
parseable by software.

6 years agoConvert uncontroversial anonymous numerics to use constants.
Peter Powell [Tue, 5 Sep 2017 16:54:40 +0000 (17:54 +0100)]
Convert uncontroversial anonymous numerics to use constants.

6 years agoChange the numerics used by /COMMANDS to avoid a collision.
Peter Powell [Tue, 5 Sep 2017 18:10:03 +0000 (19:10 +0100)]
Change the numerics used by /COMMANDS to avoid a collision.

6 years agoImprove the /MODULES output.
Peter Powell [Tue, 5 Sep 2017 17:33:50 +0000 (18:33 +0100)]
Improve the /MODULES output.

6 years agoAdd support for length arguments in getString.
Peter Powell [Thu, 17 Aug 2017 13:54:49 +0000 (14:54 +0100)]
Add support for length arguments in getString.

6 years agoConvert a bunch of time-related config options to getDuration.
Peter Powell [Sun, 13 Aug 2017 15:26:48 +0000 (16:26 +0100)]
Convert a bunch of time-related config options to getDuration.

6 years agoMove <dns:timeout> out of the core.
Peter Powell [Sun, 3 Sep 2017 18:08:52 +0000 (19:08 +0100)]
Move <dns:timeout> out of the core.

6 years agoAdd a ConfigTag* parameter to the ServerPaths constructor.
Peter Powell [Sun, 27 Aug 2017 11:59:02 +0000 (12:59 +0100)]
Add a ConfigTag* parameter to the ServerPaths constructor.

This is used to directly read the settings from the config tag like
how ServerLimits works.

6 years agoFix {Host,IP}MatchesEveryone using Match instead of MatchCIDR.
Peter Powell [Thu, 31 Aug 2017 21:51:58 +0000 (22:51 +0100)]
Fix {Host,IP}MatchesEveryone using Match instead of MatchCIDR.

MatchCIDR is what [GKZ]Line::Matches uses it so we should also use
it here to prevent insane bans that should not pass from passing.

6 years agoRemove module file extensions from user-visible messages.
Peter Powell [Sun, 27 Aug 2017 12:25:29 +0000 (13:25 +0100)]
Remove module file extensions from user-visible messages.

6 years agoUpdate a bunch of references to the old command modules.
Peter Powell [Sun, 27 Aug 2017 12:18:58 +0000 (13:18 +0100)]
Update a bunch of references to the old command modules.

6 years agoMatch against core_*.so when looking for core modules.
Peter Powell [Sun, 20 Aug 2017 13:51:30 +0000 (14:51 +0100)]
Match against core_*.so when looking for core modules.

6 years agoUse DLLManager::RetrieveLastError() on all platforms.
Peter Powell [Sat, 26 Aug 2017 16:25:20 +0000 (17:25 +0100)]
Use DLLManager::RetrieveLastError() on all platforms.

This prevents a bug where we send malformed messages to the client
when dlerror() returns an error message containing more than one
line. This has been observed on macOS but probably will happen on
other UNIX systems too.

This also fixes a potential problem where dlerror() returns NULL
and converting it to std::string causes a crash. I can't see any
way that this might happen but it is better to be safe than sorry.

6 years agoRemove some outdated documentation from the SocketEngine class.
Peter Powell [Sat, 26 Aug 2017 15:07:52 +0000 (16:07 +0100)]
Remove some outdated documentation from the SocketEngine class.

6 years agoMake the build reproducible by removing time related macros.
Peter Powell [Wed, 16 Aug 2017 15:59:56 +0000 (16:59 +0100)]
Make the build reproducible by removing time related macros.

The compile time on boot is not accurate as it will only change
when the translation unit containing it is edited.

The startup time in RPL_SERVERCREATED is a lot more useful than
the compilation time. ngIRCd also implements this behaviour.

6 years agoFix a bunch of Doxygen warnings.
Peter Powell [Fri, 25 Aug 2017 12:03:53 +0000 (13:03 +0100)]
Fix a bunch of Doxygen warnings.

6 years agoFix mistakenly hardcoding the halfop prefix char in timedbans.
Peter Powell [Fri, 25 Aug 2017 12:12:44 +0000 (13:12 +0100)]
Fix mistakenly hardcoding the halfop prefix char in timedbans.

This will almost always be % but if the server admin is using the
customprefix module and remaps it to something else messages will
not be sent out correctly.

6 years agom_chghost: use an iterator instead of a NULL-checking loop.
Peter Powell [Sun, 13 Aug 2017 07:35:20 +0000 (08:35 +0100)]
m_chghost: use an iterator instead of a NULL-checking loop.

6 years agom_sethost: check the length first for consistency with CHGHOST.
Peter Powell [Sun, 13 Aug 2017 07:52:39 +0000 (08:52 +0100)]
m_sethost: check the length first for consistency with CHGHOST.

6 years agom_sethost: use length() instead of counting in the loop.
Peter Powell [Sun, 13 Aug 2017 07:32:09 +0000 (08:32 +0100)]
m_sethost: use length() instead of counting in the loop.

6 years agoUpdate the link to the CIDR subnetting charts.
Peter Powell [Sun, 13 Aug 2017 16:24:20 +0000 (17:24 +0100)]
Update the link to the CIDR subnetting charts.

6 years agoRemove <alias:matchcase> and associated code.
Peter Powell [Sun, 30 Jul 2017 18:20:35 +0000 (19:20 +0100)]
Remove <alias:matchcase> and associated code.

This was never documented and seems pretty useless.