11679 Commits

Author SHA1 Message Date
attilamolnar
38eb845f7a Remove a few not-so-useful debug messages 2013-08-04 12:33:30 +02:00
Attila Molnar
8692ce1b65 Merge pull request #596 from SaberUK/master+genssl-auto
Add 'auto' option to genssl to automatically select a generator.
2013-08-04 03:21:17 -07:00
Attila Molnar
44b20f4745 Merge pull request #593 from SaberUK/master+configure-shuffle
Remove a ton of duplicate and obsolete code from configure.
2013-08-04 03:19:02 -07:00
Peter Powell
b3200d542b Add 'auto' option to genssl to automatically select a generator. 2013-07-29 17:07:52 +01:00
Peter Powell
b4ba01f542 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.
2013-07-29 03:33:46 +01:00
Adam
1be212b865 Use server ids when propagating squits 2013-07-26 07:33:45 -04:00
attilamolnar
c6b911132c m_spanningtree Change the type of TreeServer::ServerName to std::string 2013-07-24 18:12:22 +02:00
attilamolnar
d763f0b2ee m_spanningtree Cleanup TreeServer and TreeSocket construction/destruction 2013-07-24 18:12:10 +02:00
attilamolnar
1a775c11c2 umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functions 2013-07-24 18:10:34 +02:00
attilamolnar
c265641c0a Rewrite SnomaskManager::SendMessage() and Flush(), split code into functions 2013-07-24 18:10:20 +02:00
attilamolnar
457d5da692 Fix generated snomask mode change string being incosistent with the input in certain cases, spotted by @Robby- 2013-07-20 18:45:35 +02:00
attilamolnar
909cba9b75 Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomask 2013-07-20 18:15:01 +02:00
attilamolnar
812c478f8b m_ojoin Stop hardcoding +Y, move global vars into a class, move initialization code into init() 2013-07-19 19:40:06 +02:00
attilamolnar
2dc01893c6 Get rid of enum UserModes and mark User::modes as private 2013-07-19 19:40:05 +02:00
attilamolnar
fd1d19d634 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
2013-07-19 19:40:04 +02:00
attilamolnar
882084defc Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the User class to the snomask modehandler 2013-07-19 19:40:03 +02:00
attilamolnar
b954283ccc 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
2013-07-19 19:40:03 +02:00
attilamolnar
5288eb1594 Seperate ModeReference into ChanModeReference and UserModeReference 2013-07-19 19:40:02 +02:00
attilamolnar
ac55270a08 Move dynamic_reference and related classes to dynref.h 2013-07-19 19:40:02 +02:00
Attila Molnar
6a7de2b21f Merge pull request #589 from SaberUK/master+fix-debug-build
Fix some warnings which are causing debug builds to fail.
2013-07-16 14:07:11 -07:00
Peter Powell
0003fc3131 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
2013-07-16 22:06:40 +01:00
Attila Molnar
e18fc80bc9 Merge pull request #587 from SaberUK/master+defer-preprocessor
Use the preprocessor to check for TCP deferring support.
2013-07-16 13:54:44 -07:00
Peter Powell
22f013a06f Use the preprocessor to check for TCP deferring support. 2013-07-16 21:48:53 +01:00
attilamolnar
561f4f642e m_ssl_openssl Fix inverted check that prevented certificates from being recognized as trusted 2013-07-16 22:30:18 +02:00
Adam
6e0b904d34 Use the correct socket related error messages on Windows 2013-07-14 20:23:53 +02:00
attilamolnar
2a9aa9be8a Clean up error handling in threadengine_win32 2013-07-12 19:30:33 +02:00
Attila Molnar
538a894209 Merge pull request #588 from SaberUK/insp20+fix-socketengines
[2.0] Fix various socket engine bugs.
2013-07-12 10:28:37 -07:00
Attila Molnar
6033f1d6fa Merge pull request #585 from SaberUK/master+configure-engine-selection
Replace arguments for toggling socketengines  with --socketengine.
2013-07-12 08:59:26 -07:00
attilamolnar
be23ca74e4 m_userip Fix incorrect "variable may be used uninitialized" warning shown by older GCC versions 2013-07-09 17:34:10 +02:00
attilamolnar
7dd381f568 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
2013-07-07 23:10:45 +02:00
Peter Powell
bac02a2800 Replace arguments for toggling socketengines with --socketengine. 2013-07-07 21:02:47 +01:00
Peter Powell
525a104ef8 Fix the Poll socket engine on BSD. 2013-07-07 17:58:49 +01:00
Peter Powell
805b7d3eff Fix low risk crash when we can't determine maximum open socket count. 2013-07-07 16:25:11 +01:00
Peter Powell
ae7b9c53af Remove restriction on changing <limits:maxline> while running. 2013-07-06 18:00:27 +02:00
Attila Molnar
b64221d8ba Merge pull request #578 from SaberUK/master+configure-compiler-detection
Improve compiler logic in configure.
2013-07-06 08:35:04 -07:00
Attila Molnar
752cb8b179 Merge pull request #573 from ShutterQuick/inspircd+sslhash
Allow the user to specify any hashing mechanism supported by the underlying SSL library
2013-07-06 08:27:08 -07:00
Daniel Vassdal
b31b911bba Allow the user to specify any hashing mechanism supported by the underlying SSL library 2013-07-06 08:21:31 -07:00
Peter Powell
1b475afbe5 Expose compiler name to make.
- Convert ICC detection to use new variable.
2013-07-05 07:12:02 +01:00
Peter Powell
90a068af71 Rename configuration variable to CXX to match everything else. 2013-07-05 07:12:02 +01:00
Peter Powell
77a08e490c Correctly detect the compiler version and whether it is acceptable. 2013-07-05 07:12:02 +01:00
Peter Powell
2677d12f20 Automatically detect the compiler which the user has installed. 2013-07-05 07:12:02 +01:00
Peter Powell
f52123b1ed Purge --with-cc in favour of the CXX environment variable. 2013-07-05 07:12:02 +01:00
Attila Molnar
27ae66eb3f Merge pull request #577 from SaberUK/master+makefile-cleanup
Tidy up the Makefile template.
2013-07-04 10:17:48 -07:00
Peter Powell
240f34086a Rename CXXFLAGS to CORECXXFLAGS to respect users enviroment. 2013-07-04 17:55:23 +01:00
Peter Powell
8aff5d15d3 Use CXX instead of CC.
CXX is the correct variable to use as CC is the C compiler.
2013-07-04 17:51:33 +01:00
Peter Powell
0b4a12dc5f Add IFNEQ Makefile template macro.
- Use template macro for ICC check.
- Don't link against pthread on Darwin.
2013-07-04 17:51:33 +01:00
Peter Powell
b37dfc9341 Remove 'make squeakyclean'.
This was a non-standard alias for make distclean.
2013-07-04 17:51:33 +01:00
Peter Powell
450e94945e 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.
2013-07-04 17:51:33 +01:00
Peter Powell
414d9f0b30 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.
2013-07-04 17:51:33 +01:00
Attila Molnar
fd0fa86da8 Merge pull request #574 from SaberUK/master+build-comment-cleanup
Clean up unneeded build system comments.
2013-07-04 09:12:41 -07:00