]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
Attila Molnar [Sat, 17 Aug 2013 16:25:42 +0000 (09:25 -0700)]
Merge pull request #608 from SaberUK/master+buildprop-dedupe
Clean up the build system properties and related code.
Peter Powell [Thu, 15 Aug 2013 17:55:16 +0000 (18:55 +0100)]
Clean up the build system properties and related code.
- Deduplicate getcompilerflags, getdependancies, getlinkerflags.
- Remove $NoPedantic (add -Wno-pedantic to $CompileFlags instead).
- Remove --enable-freebsd-ports-openssl and all related code (this
will be replaced with --no-pkg-config=[name] in the future).
- Remove some unused build system properties.
- Remove support for caching third party include and library paths
(can cause unexpected problems when they change).
attilamolnar [Thu, 15 Aug 2013 15:39:56 +0000 (17:39 +0200)]
Remove $ModDep comments
attilamolnar [Tue, 13 Aug 2013 12:22:07 +0000 (14:22 +0200)]
Store oper types and opers in separate containers
attilamolnar [Tue, 13 Aug 2013 12:10:04 +0000 (14:10 +0200)]
m_ssl_gnutls Fix feature testing and cipher suite related errors on older GnuTLS versions
Use the (old) LIBGNUTLS_VERSION_* defines as a fallback when GNUTLS_VERSION_* is unavailable
Fixes #595 reported by @rhylan
attilamolnar [Mon, 12 Aug 2013 18:10:06 +0000 (20:10 +0200)]
Clean up a few constructors
Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead
attilamolnar [Sun, 22 Jul 2012 21:18:06 +0000 (23:18 +0200)]
cmd_whowas Major cleanup, fix inefficiencies
attilamolnar [Mon, 12 Aug 2013 17:20:18 +0000 (19:20 +0200)]
Add ConfigTag::getDuration() with optional bounds checking
Attila Molnar [Mon, 12 Aug 2013 17:08:36 +0000 (10:08 -0700)]
Merge pull request #607 from SaberUK/master+match
Clean up wildcard code.
Peter Powell [Wed, 7 Aug 2013 13:37:30 +0000 (14:37 +0100)]
Clean up wildcard code.
- Move references and pointers next to the type.
- Rename match_internal to MatchInternal.
- Remove duplicate NULL check on map in MatchCIDR.
Attila Molnar [Mon, 12 Aug 2013 16:20:46 +0000 (09:20 -0700)]
Merge pull request #591 from SaberUK/master+config-tweaks
Various patches relating to configuration.
Peter Powell [Wed, 10 Jul 2013 17:11:48 +0000 (18:11 +0100)]
Add <path> keys for all of the compile-time paths.
Also, make all paths in the config relative to their associated
directory. This reverts a change in 2.0 which turned out to be a
terrible idea, especially for system-wide installations.
Peter Powell [Wed, 10 Jul 2013 14:23:46 +0000 (15:23 +0100)]
Require privs given on initial join to be in <options:defaultmodes>.
Peter Powell [Wed, 10 Jul 2013 13:50:26 +0000 (14:50 +0100)]
Rename <options:moronbanner> to <options:xlinemessage>.
This name is more descriptive of what is actually is used for.
Peter Powell [Wed, 10 Jul 2013 13:28:05 +0000 (14:28 +0100)]
Replace range() with min and max arguments on getInt().
Peter Powell [Wed, 10 Jul 2013 13:11:58 +0000 (14:11 +0100)]
Prevent servers from ulining themselves.
Almost every single case I have seen where this has been done has
been an accident.
Peter Powell [Wed, 10 Jul 2013 12:38:00 +0000 (13:38 +0100)]
Change the default for <security:customversion> to an empty string.
RFC 1459 says this field is for comments about the version. If the
operator has no comments then we should not show any.
Peter Powell [Wed, 10 Jul 2013 12:26:58 +0000 (13:26 +0100)]
Warn if the server has no <bind> blocks.
Peter Powell [Wed, 10 Jul 2013 12:05:59 +0000 (13:05 +0100)]
Use an example server name if <server:name> is not defined.
Peter Powell [Wed, 10 Jul 2013 11:46:01 +0000 (12:46 +0100)]
Rename <connect:nouserdns> to <connect:resolvehostnames>.
This name is more descriptive and avoids a double negative which
could make the name of this setting unclear to non-native speakers.
attilamolnar [Fri, 9 Aug 2013 16:28:11 +0000 (18:28 +0200)]
Remove virtual User::GetClass() (but keep LocalUser::GetClass())
attilamolnar [Fri, 9 Aug 2013 16:20:12 +0000 (18:20 +0200)]
Accept std::string as parameter in User::ChangeHost(), ChangeIdent() and ChangeName()
Pass the string itself to IsIdent() instead of string.c_str()
attilamolnar [Fri, 9 Aug 2013 16:10:48 +0000 (18:10 +0200)]
Move host cycle logic into m_hostcycle
attilamolnar [Thu, 8 Aug 2013 13:10:48 +0000 (15:10 +0200)]
Fix a couple of issues
- Wrong doc for Snomask::GetDescription()
- Incorrect idle time when WHOISing remote users
- String + int = garbage
- Remote MODE commands (user mode changes) being broadcast in addition to being forwarded
- Incorrect revision being shown
Adam [Tue, 6 Aug 2013 20:14:30 +0000 (20:14 +0000)]
attilamolnar [Sun, 4 Aug 2013 17:13:52 +0000 (19:13 +0200)]
Call ModeParser::Process() directly instead of going through the CommandParser
Simplify the way how m_conn_umodes assembles the modes it sets
attilamolnar [Fri, 19 Apr 2013 11:10:16 +0000 (13:10 +0200)]
FakeUsers are only inserted into UserManager::uuidlist; don't try to erase() them from clientlist
Attila Molnar [Sun, 4 Aug 2013 16:51:28 +0000 (09:51 -0700)]
Merge pull request #599 from SaberUK/master+configure-tests
Refactor duplicate test code into a run_test subroutine.
Peter Powell [Sun, 4 Aug 2013 15:03:17 +0000 (16:03 +0100)]
Refactor duplicate test code into a run_test subroutine.
attilamolnar [Sun, 4 Aug 2013 12:36:14 +0000 (14:36 +0200)]
Automatically attach modules to events
Adam [Wed, 26 Jun 2013 21:01:33 +0000 (17:01 -0400)]
Change the syntax of FOREACH macros to be less dumb.
Attila Molnar [Sun, 4 Aug 2013 14:08:41 +0000 (07:08 -0700)]
Merge pull request #590 from SaberUK/master+module-logging
Change modules to use the MODNAME constant.
Peter Powell [Sun, 4 Aug 2013 12:46:17 +0000 (13:46 +0100)]
Modify the log message to contain the log type.
Peter Powell [Sun, 4 Aug 2013 12:43:18 +0000 (13:43 +0100)]
Change httpd modules to use the MODNAME constant in headers.
Peter Powell [Sun, 7 Jul 2013 19:01:44 +0000 (20:01 +0100)]
Change modules to use the MODNAME constant when logging.
The majority of modules were logging with their module name as the
log type. There was a few places which were logging to a non-name
type but, with the exception of CONFIG, those messages are so
uncommon that it doesn't make sense to use a seperate type for
them.
attilamolnar [Sun, 4 Aug 2013 10:33:30 +0000 (12:33 +0200)]
Remove a few not-so-useful debug messages
Attila Molnar [Sun, 4 Aug 2013 10:21:17 +0000 (03:21 -0700)]
Merge pull request #596 from SaberUK/master+genssl-auto
Add 'auto' option to genssl to automatically select a generator.
Attila Molnar [Sun, 4 Aug 2013 10:19:02 +0000 (03:19 -0700)]
Merge pull request #593 from SaberUK/master+configure-shuffle
Remove a ton of duplicate and obsolete code from configure.
Peter Powell [Sat, 27 Jul 2013 03:56:35 +0000 (04:56 +0100)]
Add 'auto' option to genssl to automatically select a generator.
Peter Powell [Sun, 21 Jul 2013 00:56:36 +0000 (01:56 +0100)]
Remove a ton of duplicate and obsolete code from configure.
- Add the data and log paths to dumphash.
- Always exit with EXIT_FAILURE on error.
- Always replace the old config.h with our new one.
- Clean up the ./configure --help message slightly.
- Install dhparams.pem into the conf directory on GnuTLS as well as
OpenSSL.
- Only show the users InspIRCd Git revision when building from Git.
- Remove a check for MinGW (we have proper Windows builds).
- Remove a check for FreeBSD 4 (released in 2000).
- Remove a ton of pointless tab-indented comments.
- Remove a ton of duplicate or unused variables.
- Remove the check for stdint.h (always available on TR1 compilers).
- Remove the $writeheader argument from writefiles (always 1).
- Remove the following %config options:
- DESTINATION (not used, always set to BASE).
- EXECUTABLE (always set to inspircd).
- OSNAME (duplicate of SYSTEM).
- Remove support for checking whether -extra modules are up to
date (if the user is installing they won't have any -extra
modules installed).
- Remove SSL generation messages (genssl provides these).
- Replace inappropriate uses of printf with print.
- Replace is_dir with -d from the Perl stdlib.
- Replace resolve_directory with rel2abs from the Perl stdlib.
- Rewrite getrevision to be more compact, cache the revision and
return 'release' on non-Git builds.
- Use consistent messages for all tests.
- Use tput to clear the screen in a portable way.
Adam [Fri, 26 Jul 2013 11:33:45 +0000 (07:33 -0400)]
Use server ids when propagating squits
attilamolnar [Sun, 21 Jul 2013 16:18:33 +0000 (18:18 +0200)]
m_spanningtree Change the type of TreeServer::ServerName to std::string
attilamolnar [Sun, 21 Jul 2013 16:10:01 +0000 (18:10 +0200)]
m_spanningtree Cleanup TreeServer and TreeSocket construction/destruction
attilamolnar [Sat, 20 Jul 2013 18:59:48 +0000 (20:59 +0200)]
umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functions
attilamolnar [Sat, 20 Jul 2013 18:30:18 +0000 (20:30 +0200)]
Rewrite SnomaskManager::SendMessage() and Flush(), split code into functions
attilamolnar [Sat, 20 Jul 2013 16:45:35 +0000 (18:45 +0200)]
Fix generated snomask mode change string being incosistent with the input in certain cases, spotted by @Robby-
attilamolnar [Sat, 20 Jul 2013 16:15:01 +0000 (18:15 +0200)]
Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomask
attilamolnar [Tue, 18 Jun 2013 17:40:55 +0000 (19:40 +0200)]
m_ojoin Stop hardcoding +Y, move global vars into a class, move initialization code into init()
attilamolnar [Tue, 18 Jun 2013 17:17:39 +0000 (19:17 +0200)]
Get rid of enum UserModes and mark User::modes as private
attilamolnar [Tue, 18 Jun 2013 17:10:07 +0000 (19:10 +0200)]
Replace hardcoded mode letters, part 3
This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
attilamolnar [Tue, 18 Jun 2013 16:50:10 +0000 (18:50 +0200)]
Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the User class to the snomask modehandler
attilamolnar [Tue, 18 Jun 2013 16:30:10 +0000 (18:30 +0200)]
Replace hardcoded mode letters, part 2
This changes all remaining Channel::IsModeSet() and Channel::GetModeParameter() calls to use ModeReferences for modes that were created by other modules or the core
attilamolnar [Sun, 14 Jul 2013 22:20:28 +0000 (00:20 +0200)]
Seperate ModeReference into ChanModeReference and UserModeReference
attilamolnar [Tue, 18 Jun 2013 16:19:28 +0000 (18:19 +0200)]
Move dynamic_reference and related classes to dynref.h
Attila Molnar [Tue, 16 Jul 2013 21:07:11 +0000 (14:07 -0700)]
Merge pull request #589 from SaberUK/master+fix-debug-build
Fix some warnings which are causing debug builds to fail.
Peter Powell [Sun, 7 Jul 2013 18:29:50 +0000 (19:29 +0100)]
Fix some warnings which are causing debug builds to fail.
- Clang: private field 'module' is not used
- GCC: suggest a space before ‘;’ or explicit braces around empty
body in ‘while’ statement
Attila Molnar [Tue, 16 Jul 2013 20:54:44 +0000 (13:54 -0700)]
Merge pull request #587 from SaberUK/master+defer-preprocessor
Use the preprocessor to check for TCP deferring support.
Peter Powell [Sun, 7 Jul 2013 13:27:54 +0000 (14:27 +0100)]
Use the preprocessor to check for TCP deferring support.
attilamolnar [Tue, 16 Jul 2013 20:30:18 +0000 (22:30 +0200)]
m_ssl_openssl Fix inverted check that prevented certificates from being recognized as trusted
Adam [Wed, 3 Jul 2013 21:26:45 +0000 (17:26 -0400)]
Use the correct socket related error messages on Windows
attilamolnar [Fri, 12 Jul 2013 17:30:33 +0000 (19:30 +0200)]
Clean up error handling in threadengine_win32
Attila Molnar [Fri, 12 Jul 2013 17:28:37 +0000 (10:28 -0700)]
Merge pull request #588 from SaberUK/insp20+fix-socketengines
[2.0] Fix various socket engine bugs.
Attila Molnar [Fri, 12 Jul 2013 15:59:26 +0000 (08:59 -0700)]
Merge pull request #585 from SaberUK/master+configure-engine-selection
Replace arguments for toggling socketengines with --socketengine.
attilamolnar [Tue, 9 Jul 2013 15:34:10 +0000 (17:34 +0200)]
m_userip Fix incorrect "variable may be used uninitialized" warning shown by older GCC versions
attilamolnar [Wed, 19 Jun 2013 19:53:12 +0000 (21:53 +0200)]
Do not send too much data over SSL in one go
Some clients fail to read it entirely and the remaining data stays in their read buffer until new data arrives
Peter Powell [Fri, 5 Jul 2013 07:07:52 +0000 (08:07 +0100)]
Replace arguments for toggling socketengines with --socketengine.
Peter Powell [Sun, 7 Jul 2013 15:33:31 +0000 (16:33 +0100)]
Fix the Poll socket engine on BSD.
Peter Powell [Sun, 7 Jul 2013 15:25:11 +0000 (16:25 +0100)]
Fix low risk crash when we can't determine maximum open socket count.
Peter Powell [Thu, 4 Jul 2013 13:03:50 +0000 (14:03 +0100)]
Remove restriction on changing <limits:maxline> while running.
Attila Molnar [Sat, 6 Jul 2013 15:35:04 +0000 (08:35 -0700)]
Merge pull request #578 from SaberUK/master+configure-compiler-detection
Improve compiler logic in configure.
Attila Molnar [Sat, 6 Jul 2013 15:27:08 +0000 (08:27 -0700)]
Merge pull request #573 from ShutterQuick/inspircd+sslhash
Allow the user to specify any hashing mechanism supported by the underlying SSL library
Daniel Vassdal [Tue, 2 Jul 2013 10:35:52 +0000 (12:35 +0200)]
Allow the user to specify any hashing mechanism supported by the underlying SSL library
Peter Powell [Thu, 4 Jul 2013 18:42:15 +0000 (19:42 +0100)]
Expose compiler name to make.
- Convert ICC detection to use new variable.
Peter Powell [Thu, 4 Jul 2013 17:46:46 +0000 (18:46 +0100)]
Rename configuration variable to CXX to match everything else.
Peter Powell [Thu, 4 Jul 2013 08:27:12 +0000 (09:27 +0100)]
Correctly detect the compiler version and whether it is acceptable.
Peter Powell [Thu, 4 Jul 2013 07:41:33 +0000 (08:41 +0100)]
Automatically detect the compiler which the user has installed.
Peter Powell [Thu, 4 Jul 2013 07:28:26 +0000 (08:28 +0100)]
Purge --with-cc in favour of the CXX environment variable.
Attila Molnar [Thu, 4 Jul 2013 17:17:48 +0000 (10:17 -0700)]
Merge pull request #577 from SaberUK/master+makefile-cleanup
Tidy up the Makefile template.
Peter Powell [Thu, 4 Jul 2013 16:48:58 +0000 (17:48 +0100)]
Rename CXXFLAGS to CORECXXFLAGS to respect users enviroment.
Peter Powell [Fri, 14 Jun 2013 03:13:27 +0000 (04:13 +0100)]
Use CXX instead of CC.
CXX is the correct variable to use as CC is the C compiler.
Peter Powell [Fri, 14 Jun 2013 03:06:35 +0000 (04:06 +0100)]
Add IFNEQ Makefile template macro.
- Use template macro for ICC check.
- Don't link against pthread on Darwin.
Peter Powell [Fri, 14 Jun 2013 02:31:47 +0000 (03:31 +0100)]
Remove 'make squeakyclean'.
This was a non-standard alias for make distclean.
Peter Powell [Fri, 14 Jun 2013 03:02:58 +0000 (04:02 +0100)]
Tidy up CXXFLAGS and LDFLAGS.
- Add -Iinclude at declaration instead of doing it later on.
- Add -Wextra -Wfatal-errors and -Wno-unused-parameter.
- Enable -Wall and -Wshadow on ICC.
- Remove -DPIC (useless).
- Remove empty declaration of LDFLAGS.
- Remove unneeded CXXFLAGS on Darwin.
Peter Powell [Fri, 14 Jun 2013 02:27:25 +0000 (03:27 +0100)]
Remove support for Interix and SunOS from the Makefile.
- SunOS was replaced with Solaris in 1992(!).
- We have a native Windows port so Interix is not needed.
Attila Molnar [Thu, 4 Jul 2013 16:12:41 +0000 (09:12 -0700)]
Merge pull request #574 from SaberUK/master+build-comment-cleanup
Clean up unneeded build system comments.
Attila Molnar [Thu, 4 Jul 2013 16:05:39 +0000 (09:05 -0700)]
Merge pull request #580 from SaberUK/master+restrict-network-name
Fix users being able to set <server:network> to an invalid value.
Peter Powell [Thu, 4 Jul 2013 13:55:46 +0000 (14:55 +0100)]
Fix users being able to set <server:network> to an invalid value.
Peter Powell [Wed, 3 Jul 2013 04:07:05 +0000 (05:07 +0100)]
Fix some missing newlines in the config header generator.
Peter Powell [Wed, 3 Jul 2013 03:58:56 +0000 (04:58 +0100)]
Fix $ModDep failing to find application-wide include files.
Peter Powell [Wed, 3 Jul 2013 04:01:13 +0000 (05:01 +0100)]
Remove detection of deprecated backticks which was added in 1.1b9.
Peter Powell [Wed, 3 Jul 2013 03:34:40 +0000 (04:34 +0100)]
Remove $Core and $Mod* comments apart from $ModDep.
Attila Molnar [Tue, 2 Jul 2013 18:10:36 +0000 (11:10 -0700)]
Merge pull request #571 from ShutterQuick/inspircd+checkclone
Allow for skipping clone checking before DNS is complete.
Daniel Vassdal [Mon, 1 Jul 2013 19:31:36 +0000 (12:31 -0700)]
Allow for skipping clone checking before DNS is complete.
Attila Molnar [Tue, 2 Jul 2013 17:19:35 +0000 (10:19 -0700)]
Merge pull request #569 from ShutterQuick/inspircd+asrootfix
Made the launch script aware of --runasroot
attilamolnar [Thu, 11 Apr 2013 21:47:45 +0000 (23:47 +0200)]
Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() with ModeHandlers, part 1
attilamolnar [Mon, 1 Jul 2013 17:10:21 +0000 (19:10 +0200)]
Fix a few oversights
This partially reverts
e0cb6bd46fb1d804ad6adea5688c844f7e1a0f6f
Daniel Vassdal [Fri, 28 Jun 2013 10:40:51 +0000 (12:40 +0200)]
Made the launch script aware of --runasroot, so it does not drop privs if this is specified.
Attila Molnar [Mon, 24 Jun 2013 20:53:58 +0000 (13:53 -0700)]
Merge pull request #563 from ElementalAlchemist/patch-1
Prevent m_cgiirc from blocking indefinitely
ElementalAlchemist [Thu, 20 Jun 2013 17:26:22 +0000 (14:26 -0300)]
Prevent m_cgiirc from blocking indefinitely, resulting in registration timeouts on e.g. Mibbit when webirc is not used
attilamolnar [Mon, 24 Jun 2013 19:32:10 +0000 (21:32 +0200)]
m_repeat Optimize the Levenshtein() function
New version uses 2 vectors instead of a matrix
Do not shrink the vectors even if the user sets a lower <repeat:size> than before, this is because longer lines may remain in the backlog