11469 Commits

Author SHA1 Message Date
Attila Molnar
36f93c0e7f Merge pull request #590 from SaberUK/master+module-logging
Change modules to use the MODNAME constant.
2013-08-04 07:08:41 -07:00
Peter Powell
cc1d8c1d57 Modify the log message to contain the log type. 2013-08-04 14:59:20 +01:00
Peter Powell
24623a5fe6 Change httpd modules to use the MODNAME constant in headers. 2013-08-04 13:47:18 +01:00
Peter Powell
abc57eddfb 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.
2013-08-04 13:32:51 +01:00
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
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
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
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
Peter Powell
bac02a2800 Replace arguments for toggling socketengines with --socketengine. 2013-07-07 21:02:47 +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
Attila Molnar
f6d68c82e7 Merge pull request #580 from SaberUK/master+restrict-network-name
Fix users being able to set <server:network> to an invalid value.
2013-07-04 09:05:39 -07:00
Peter Powell
be476a9d81 Fix users being able to set <server:network> to an invalid value. 2013-07-04 15:55:52 +01:00
Peter Powell
9b29bedbc3 Fix some missing newlines in the config header generator. 2013-07-04 15:51:11 +01:00
Peter Powell
b68816b1fd Fix $ModDep failing to find application-wide include files. 2013-07-04 15:51:11 +01:00
Peter Powell
8283b56440 Remove detection of deprecated backticks which was added in 1.1b9. 2013-07-04 15:51:10 +01:00
Peter Powell
54d10d53c7 Remove $Core and $Mod* comments apart from $ModDep. 2013-07-04 15:51:00 +01:00