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
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.
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.
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
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.
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
attilamolnar [Tue, 18 Jun 2013 19:20:30 +0000 (21:20 +0200)]
Minor changes to the startup and shutdown code
- Update comments
- Close logs in LogManager destructor instead of relying on other code to do it
- Change return type of InspIRCd::Run() to void
- private: InspIRCd::CheckRoot()
- Change log message type of setgroups() etc. errors to "STARTUP"
- Load cmd_privmsg in PURE_STATIC builds
attilamolnar [Thu, 13 Jun 2013 16:15:34 +0000 (18:15 +0200)]
Introduce ModeProcessFlags, can be passed to ModeParser::Process() to indicate local only mode changes and mode merges
Change ProtocolInterface::SendMode() to take source and destination parameters, and call it from the mode parser whenever the mode change is global
This deprecates the ambiguous InspIRCd::SendMode() and InspIRCd::SendGlobalMode() interface (the latter sent mode changes originating from local users twice, etc.)
attilamolnar [Wed, 12 Jun 2013 18:32:10 +0000 (20:32 +0200)]
CommandParser::LoopCall() changes
- Change function to be static, return a bool
- Do not filter duplicates when there are 2 lists (JOIN)
- Remove validation of 'extra' parameter, caller must pass either a valid index or -1
Daniel Vassdal [Thu, 25 Apr 2013 11:36:48 +0000 (13:36 +0200)]
Added m_repeat - Allows for blocking of similiar messages
Changes to the original module:
- Parse settings using a sepstream, accept remote mode changes regardless of our config
- Refuse to link when config settings differ
- Style changes
All ideas and features are the brainchild and work of Daniel Vassdal