]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
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.
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.
Peter Powell [Fri, 5 Jul 2013 07:07:52 +0000 (08:07 +0100)]
Replace arguments for toggling socketengines with --socketengine.
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.
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
Attila Molnar [Mon, 24 Jun 2013 19:16:50 +0000 (12:16 -0700)]
Merge pull request #564 from SaberUK/master+doxygen-fix
Fix Doxygen comments.
Peter Powell [Fri, 21 Jun 2013 02:52:56 +0000 (03:52 +0100)]
Fix Doxygen comments.
attilamolnar [Tue, 18 Jun 2013 19:34:10 +0000 (21:34 +0200)]
Remove limitsomaxconn and remains of m_halfop/allowhalfop
attilamolnar [Tue, 18 Jun 2013 19:26:54 +0000 (21:26 +0200)]
Use exit code EXIT_STATUS_SERVICE on Windows when exiting because of a service error
attilamolnar [Tue, 18 Jun 2013 19:25:43 +0000 (21:25 +0200)]
Remove dead code from the InspIRCd and CommandParser classes and typedefs.h
Removed functions:
InspIRCd:
- Restart() - unused
- DoSocketTimeouts() - no implementation exists
- AddCommand() - useless wrapper around ModuleManager::AddService()
CommandParser:
- IsValidCommand() - unused
- ProcessParameters() - no implementation exists
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 [Tue, 18 Jun 2013 19:13:09 +0000 (21:13 +0200)]
Remove unused exit codes
attilamolnar [Sun, 16 Jun 2013 19:53:05 +0000 (21:53 +0200)]
Always set the topic in Channel::SetTopic(), move access checks into cmd_topic
Peter Powell [Tue, 11 Jun 2013 22:33:15 +0000 (23:33 +0100)]
Add RE2 regex module.
Daniel Vassdal [Sun, 2 Jun 2013 21:10:24 +0000 (14:10 -0700)]
m_banredirect Accept channel names starting with #! and #@
Fixes #504 reported by @mechasr
attilamolnar [Thu, 13 Jun 2013 17:00:01 +0000 (19:00 +0200)]
Call Channel::SetModeParam() from the mode parser when needed instead of requiring mode handlers to do it
attilamolnar [Thu, 13 Jun 2013 16:41:10 +0000 (18:41 +0200)]
Remove TR_END, remove TRANSLATEx() from commands that do not need it
attilamolnar [Thu, 13 Jun 2013 16:32:29 +0000 (18:32 +0200)]
Rewrite CommandParser::TranslateUIDs()
attilamolnar [Thu, 13 Jun 2013 16:20:10 +0000 (18:20 +0200)]
Replace void* dest and target_type parameters of OnMode with a User* and a Channel*
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 19:44:31 +0000 (21:44 +0200)]
m_spanningtree Move SVSMODE -> MODE translation into the appropiate place, ignore non-channel METADATA
attilamolnar [Wed, 12 Jun 2013 19:43:14 +0000 (21:43 +0200)]
m_spanningtree Rewrite incoming (E|G|K|Q|Z)LINE commands from 2.0 servers into ADDLINE/DELLINE
These commands were never documented to be usable in the server protocol but we accepted them nevertheless from servers
attilamolnar [Wed, 12 Jun 2013 19:22:37 +0000 (21:22 +0200)]
Get rid of the OnRemoteKill hook, make use of GetRouting() and TR_CUSTOM to route KILLs
attilamolnar [Wed, 12 Jun 2013 19:10:30 +0000 (21:10 +0200)]
Implement GetRouting() in core commands that require it, remove ugly workaround from spanningtree RouteCommand()
attilamolnar [Wed, 12 Jun 2013 18:59:51 +0000 (20:59 +0200)]
m_callerid Route ACCEPT to the server of the target user only, do not send METADATA at all
ACCEPTs coming from 2.0 servers with a list of uuids are broadcast, as before
attilamolnar [Wed, 12 Jun 2013 18:51:16 +0000 (20:51 +0200)]
Run the OnPostCommand hook from LoopCall()
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
attilamolnar [Wed, 12 Jun 2013 18:08:22 +0000 (20:08 +0200)]
Change command name parameter of OnPostCommand to be a Command*
attilamolnar [Wed, 12 Jun 2013 17:30:15 +0000 (19:30 +0200)]
Simplify stringjoiner: take 1 parameter, join from begin() to end() and use space as the sep char
attilamolnar [Wed, 12 Jun 2013 17:24:30 +0000 (19:24 +0200)]
m_banredirect Fix modestack usage
attilamolnar [Wed, 12 Jun 2013 17:22:50 +0000 (19:22 +0200)]
Unite cmd_privmsg and cmd_notice
attilamolnar [Mon, 10 Jun 2013 22:33:31 +0000 (00:33 +0200)]
Build with multiple processes on Windows (/MP)
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
attilamolnar [Fri, 24 May 2013 17:34:25 +0000 (19:34 +0200)]
Remove deprecated Request cross-module communication mechanism
attilamolnar [Fri, 24 May 2013 17:34:25 +0000 (19:34 +0200)]
Change the API of m_httpd to be dynamic_reference-based
attilamolnar [Fri, 24 May 2013 17:34:25 +0000 (19:34 +0200)]
Change the API of m_sslinfo to be dynamic_reference-based
attilamolnar [Fri, 24 May 2013 17:34:25 +0000 (19:34 +0200)]
Create SSLIOHook interface that provides GetCertificate()
attilamolnar [Fri, 24 May 2013 17:34:25 +0000 (19:34 +0200)]
Create IOHook interface (extracted from Module)
attilamolnar [Thu, 6 Jun 2013 01:15:50 +0000 (03:15 +0200)]
Move code between usermanager.(cpp|h), clarify comments
Initialize clientlist and uuidlist in UserManager constructor
attilamolnar [Thu, 6 Jun 2013 01:13:55 +0000 (03:13 +0200)]
Move DoBackgroundUserStuff() and AllModulesReportReady() into UserManager
attilamolnar [Thu, 6 Jun 2013 01:10:10 +0000 (03:10 +0200)]
Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual
attilamolnar [Thu, 6 Jun 2013 01:09:41 +0000 (03:09 +0200)]
Fix Windows
Attila Molnar [Thu, 6 Jun 2013 00:52:39 +0000 (17:52 -0700)]
Merge pull request #544 from SaberUK/master+kill-maxbuf
Purge MAXBUF in favour of a configuration option.
Peter Powell [Wed, 22 May 2013 21:18:02 +0000 (22:18 +0100)]
Remove hardcoded MAXBUF constant.
Peter Powell [Wed, 22 May 2013 20:18:50 +0000 (21:18 +0100)]
Convert a ton of uses of MAXBUF to use a fixed buffer size.
Peter Powell [Mon, 20 May 2013 19:15:50 +0000 (20:15 +0100)]
Convert User::SendText to use std::string.
Peter Powell [Mon, 20 May 2013 18:25:46 +0000 (19:25 +0100)]
Convert User::FormatNoticeMasks() to use std::string.
Peter Powell [Sun, 19 May 2013 01:53:32 +0000 (02:53 +0100)]
Convert ConvNumeric() to use std::string instead of char[MAXBUF].
Peter Powell [Sun, 19 May 2013 01:35:17 +0000 (02:35 +0100)]
Rewrite irc::sockets::sockaddrs::str() completely.
- Replace use of MAXBUF with INET_ADDRSTRLEN/INET6_ADDRSTRLEN.
- Replace use of sprintf with InspIRCd::Format.
Peter Powell [Sat, 18 May 2013 17:40:55 +0000 (18:40 +0100)]
Replace some C string operations with the + operator.
Peter Powell [Sat, 18 May 2013 16:18:12 +0000 (17:18 +0100)]
Use InspIRCd::Format instead of snprintf().
Peter Powell [Fri, 17 May 2013 01:03:16 +0000 (02:03 +0100)]
Use iostream instead of C-style file operations.
Peter Powell [Fri, 17 May 2013 00:35:04 +0000 (01:35 +0100)]
Compare to ServerLimits::MaxLine instead of MAXBUF.
Peter Powell [Fri, 17 May 2013 00:34:25 +0000 (01:34 +0100)]
Reserve ServerLimits::MaxLine instead of MAXBUF.
Peter Powell [Fri, 17 May 2013 00:31:32 +0000 (01:31 +0100)]
Start to replace MAXBUF with <limits:maxline>.
attilamolnar [Wed, 5 Jun 2013 23:07:22 +0000 (01:07 +0200)]
Merge insp20
attilamolnar [Wed, 5 Jun 2013 21:28:45 +0000 (23:28 +0200)]
Release 2.0.13
attilamolnar [Wed, 5 Jun 2013 21:11:50 +0000 (23:11 +0200)]
Remove unnecessary string copies and dead code
attilamolnar [Wed, 5 Jun 2013 20:40:09 +0000 (22:40 +0200)]
Report the full GnuTLS version in configure
Fix incorrect version being reported when the minor version is longer than one digit (2.10.x)
attilamolnar [Tue, 4 Jun 2013 20:16:15 +0000 (22:16 +0200)]
m_spanningtree Fix FIDENT routing
A new FIDENT was broadcast for each incoming FIDENT causing harmless but unnecessary server to server traffic
attilamolnar [Tue, 4 Jun 2013 19:43:29 +0000 (21:43 +0200)]
Fix inet_pton on Windows with IPv6 addresses
Code from Anope win32/socket.cpp by @Adam-
attilamolnar [Tue, 4 Jun 2013 19:38:03 +0000 (21:38 +0200)]
attilamolnar [Wed, 22 May 2013 20:44:10 +0000 (22:44 +0200)]
Refactor Channel::UserList() to use std::string