]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
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
attilamolnar [Sun, 2 Jun 2013 17:58:23 +0000 (19:58 +0200)]
Remove the now unused Channel::RemoveAllPrefixes() and CountInvisible()
attilamolnar [Sun, 2 Jun 2013 17:55:07 +0000 (19:55 +0200)]
Reduce User* -> Membership* lookups on part and kick
attilamolnar [Sun, 2 Jun 2013 17:30:55 +0000 (19:30 +0200)]
Channel::KickUser() and cmd_kick changes
- Remove uline checks from KickUser()
- Disallow the kick if done by a local user and the victim is ulined in cmd_kick
- Remove call to RemoveAllPrefixes() as it has no additional effect, the Membership object containing the prefixes is destroyed soon after the call
attilamolnar [Sun, 2 Jun 2013 17:10:05 +0000 (19:10 +0200)]
Remove NULL checks from various Channel functions
Passing NULL to these functions are not permitted and must be avoided by the caller
Daniel Vassdal [Wed, 22 May 2013 19:48:58 +0000 (12:48 -0700)]
Added option for using TCP_DEFER_ACCEPT. Prevents the connection from being handed over to the daemon before data is ready from the client.
attilamolnar [Sun, 2 Jun 2013 16:05:01 +0000 (18:05 +0200)]
Route WALLOPS like a regular command, remove OnWallops hook
Adam [Sun, 2 Jun 2013 02:05:51 +0000 (19:05 -0700)]
Merge pull request #550 from Adam-/master+sepstream
Rewrote sepstream and tokenstream to be less ugly
Adam [Sun, 26 May 2013 22:51:01 +0000 (18:51 -0400)]
s/seperator/separator/g
Adam [Sun, 26 May 2013 22:24:53 +0000 (18:24 -0400)]
Rewrote sepstream and tokenstream to be less ugly
attilamolnar [Sat, 1 Jun 2013 22:34:15 +0000 (00:34 +0200)]
ISupportManager: Tidy-up, expand comments
attilamolnar [Sat, 1 Jun 2013 22:28:55 +0000 (00:28 +0200)]
Move a few trivial functions into headers
attilamolnar [Sat, 1 Jun 2013 22:16:01 +0000 (00:16 +0200)]
m_devoice Remove FindChan() and HasUser() checks, these are done when parsing the mode change
attilamolnar [Sun, 26 May 2013 20:40:45 +0000 (22:40 +0200)]
Watch mode names with ModeWatchers instead of mode letters
attilamolnar [Sun, 26 May 2013 20:35:32 +0000 (22:35 +0200)]
Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()
attilamolnar [Sat, 1 Jun 2013 21:00:55 +0000 (23:00 +0200)]
Remove #define MAXPARAMETERS and "MAXPARA" 005 token
attilamolnar [Sat, 1 Jun 2013 20:57:59 +0000 (22:57 +0200)]
CommandParser::ProcessCommand() and ProcessBuffer() cleanup
- Change return types to void
- Use a pointer to the command handler instead of an iterator
attilamolnar [Sat, 1 Jun 2013 20:55:37 +0000 (22:55 +0200)]
Improve command parser logic when there are more params than Command::max_params
attilamolnar [Sat, 1 Jun 2013 20:52:02 +0000 (22:52 +0200)]
Remove (non-functional) total_bytes counter from Command
Attila Molnar [Sat, 1 Jun 2013 19:53:25 +0000 (12:53 -0700)]
Merge pull request #551 from SaberUK/master+unused-configure
Remove unused code from configure.
Peter Powell [Sat, 1 Jun 2013 19:15:17 +0000 (20:15 +0100)]
Remove unused code from configure.
attilamolnar [Sat, 1 Jun 2013 18:53:45 +0000 (20:53 +0200)]
cmd_who Hide +i users when listing users on a server and hidewhois is off
Fixes #547 reported by @RawrDragon
attilamolnar [Sat, 1 Jun 2013 18:53:32 +0000 (20:53 +0200)]
m_mysql Fix escaping strings longer than MAXBUF/2
Quotes from the documentation:
"You must allocate the to buffer to be at least length*2+1 bytes long. (In the worst case, each character may need to be encoded as using two bytes, and you need room for the terminating null byte.)"
"The return value is the length of the encoded string, not including the terminating null character."
http://dev.mysql.com/doc/refman/5.6/en/mysql-real-escape-string.html
attilamolnar [Thu, 16 May 2013 17:49:56 +0000 (19:49 +0200)]
m_userip Allow querying own IP for non-opers, require the users/auspex priv for opers to query the IP of others
Issue #513 suggested by @CuleX
attilamolnar [Sun, 26 May 2013 21:23:47 +0000 (23:23 +0200)]
Simplify user mode removal via ModeHandler::RemoveMode()
The function does not need to be virtual because the core can remove any user mode using the default logic
The optional modestack parameter was always NULL, so remove it
attilamolnar [Sun, 26 May 2013 21:23:47 +0000 (23:23 +0200)]
Deduplicate RemoveMode() implementations
The default (core) implementation can now remove prefix modes
The modestacker parameter is now mandatory
Peter Powell [Fri, 17 May 2013 04:46:51 +0000 (05:46 +0100)]
Clean up the FileReader class and all of the modules that use it.
- Modules which use this class will now have to catch a
CoreException when opening files if they wish to ignore
the failed loading of a file.
- m_randquote has been cleaned up massively and the RANDQUOTE
command has been removed as it was pretty much useless.
attilamolnar [Fri, 24 May 2013 16:38:55 +0000 (18:38 +0200)]
LogManager cleanup
attilamolnar [Fri, 24 May 2013 16:22:25 +0000 (18:22 +0200)]
Cache mode list that is sent in the 004 numeric
Deduplicate UserModeList(), ChannelModeList() and ParaModeList() code
attilamolnar [Fri, 24 May 2013 16:20:58 +0000 (18:20 +0200)]
Remove dead ModeParser code
attilamolnar [Thu, 23 May 2013 18:19:16 +0000 (20:19 +0200)]
m_nicklock Fix wrong hook in SetPriority()
attilamolnar [Thu, 23 May 2013 18:12:09 +0000 (20:12 +0200)]
Update authors
Adam [Thu, 23 May 2013 17:26:11 +0000 (13:26 -0400)]
Add a va_copy define for Windows
Adam [Thu, 23 May 2013 17:19:12 +0000 (13:19 -0400)]
Some systems with whacky va_list implementations do undefined stuff when vsnprintf is called multiple times with the same list, so have InspIRCd::Format va_copy the list before each call
Adam [Thu, 23 May 2013 16:22:54 +0000 (12:22 -0400)]
Change CacheRefreshTimer tick time back to 5 minutes
attilamolnar [Wed, 22 May 2013 20:29:15 +0000 (22:29 +0200)]
m_mysql Fix crash on rehash when the database tags have been changed in the config
Attila Molnar [Wed, 22 May 2013 00:11:46 +0000 (17:11 -0700)]
Merge pull request #545 from SaberUK/master+logging-cleanup
Clean up the logging system (part 1 of 2).
Attila Molnar [Wed, 22 May 2013 00:09:56 +0000 (17:09 -0700)]
Merge pull request #522 from SaberUK/master+xline-displayable
Convert XLine::Displayable to return a std::string.
Peter Powell [Sun, 5 May 2013 18:36:46 +0000 (19:36 +0100)]
Convert XLine::Displayable to return a std::string.
Peter Powell [Tue, 21 May 2013 03:51:45 +0000 (23:51 -0400)]
Fix msvc detection of variadic template support
Adam [Tue, 21 May 2013 01:55:49 +0000 (18:55 -0700)]
Merge pull request #548 from SaberUK/master+variadic-templates
Add support for detecting C++11 variadic templates.
Peter Powell [Tue, 21 May 2013 01:34:10 +0000 (02:34 +0100)]
Add support for detecting C++11 variadic templates.
attilamolnar [Thu, 16 May 2013 14:33:16 +0000 (16:33 +0200)]
Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to OnUserMessage and OnUserPreMessage
All modules (except m_nonotice) that perform filtering on messages have common logic for handling PRIVMSGs and NOTICEs and most of them run the exact same code in both cases
Adam [Mon, 20 May 2013 18:20:08 +0000 (14:20 -0400)]
Fixup last commit
Attila Molnar [Mon, 20 May 2013 18:05:05 +0000 (11:05 -0700)]
Merge pull request #542 from ShutterQuick/inspircd+printfcleanup
Replaced all the individual vsnprintfing with a macro
Peter Powell [Sun, 19 May 2013 02:29:49 +0000 (03:29 +0100)]
Fix spacing in calls to LogManager::Log.
Peter Powell [Fri, 19 Apr 2013 09:26:54 +0000 (10:26 +0100)]
Accept a LogLevel instead of an int in logging methods.
Peter Powell [Fri, 19 Apr 2013 06:10:27 +0000 (07:10 +0100)]
Purge a ton of code related to non <log> related logging.
- InspIRCd::OpenLog
- ./inspircd --logfile [file]
This is no longer needed now we have (since 1.2) custom logging.
Peter Powell [Fri, 19 Apr 2013 05:53:37 +0000 (06:53 +0100)]
Move LogHeader to LogStream.
Peter Powell [Fri, 19 Apr 2013 05:26:50 +0000 (06:26 +0100)]
Move LogLevel enum from filelogger to logger.
Daniel Vassdal [Sat, 18 May 2013 18:35:10 +0000 (11:35 -0700)]
Replaced vsnprintf with VAFORMAT pretty much everywhere.
Daniel Vassdal [Sat, 18 May 2013 18:31:25 +0000 (11:31 -0700)]
Added macro to allow simpler logic in functions with the need to vsnprintf
attilamolnar [Thu, 16 May 2013 14:01:51 +0000 (16:01 +0200)]
Change the signature of User::ForceNickChange() to accept const std::string& instead of const char*
attilamolnar [Thu, 16 May 2013 14:00:19 +0000 (16:00 +0200)]
Get rid of the NICKForced extension
Don't run OnUserPreNick when the nick change is forced
attilamolnar [Thu, 16 May 2013 13:52:01 +0000 (15:52 +0200)]
Remove unused UserManager::ServerPrivmsgAll()
attilamolnar [Thu, 16 May 2013 13:50:08 +0000 (15:50 +0200)]
irc::tokenstream and irc::sepstream cleanup
irc::sepstream does not require virtual methods
attilamolnar [Thu, 16 May 2013 13:45:05 +0000 (15:45 +0200)]
irc::stringjoiner cleanup
- Get rid of unused constructors
- signed -> unsigned
- return const ref from GetJoined()
attilamolnar [Thu, 16 May 2013 13:34:45 +0000 (15:34 +0200)]
Deduplicate hex string creation code
Attila Molnar [Sat, 18 May 2013 19:03:55 +0000 (12:03 -0700)]
Merge pull request #543 from SaberUK/master+sizeparam-removal
Remove the size argument from IsChannel and IsNick.
attilamolnar [Sat, 18 May 2013 19:02:09 +0000 (21:02 +0200)]
m_channames Fix iteration in ValidateChans()
Spotted by @Adam-
Attila Molnar [Sat, 18 May 2013 18:12:44 +0000 (11:12 -0700)]
Merge pull request #541 from SaberUK/master+chanlog
Purge the old chanlog code from the module file.
Peter Powell [Sat, 18 May 2013 17:55:01 +0000 (18:55 +0100)]
Remove the size argument from IsChannel and IsNick.
There was only one case (which was probably an error) where these
methods were not set to their ServerLimits value.
Peter Powell [Sat, 18 May 2013 16:21:48 +0000 (17:21 +0100)]
Purge the old chanlog code from the module file.
attilamolnar [Sat, 18 May 2013 14:05:08 +0000 (16:05 +0200)]
m_httpd_acl Reread config on rehash
attilamolnar [Sat, 18 May 2013 14:04:10 +0000 (16:04 +0200)]
m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULL
attilamolnar [Sat, 18 May 2013 14:03:17 +0000 (16:03 +0200)]
Initialize local_count
Adam [Thu, 16 May 2013 23:57:53 +0000 (19:57 -0400)]
Fix m_randquote with 0 quotes
Daniel Vassdal [Sun, 12 May 2013 17:54:07 +0000 (10:54 -0700)]
Added a function to replace all the ugly sprintf-ing everywhere
attilamolnar [Thu, 16 May 2013 19:34:45 +0000 (21:34 +0200)]
Fix padding bug in GenerateSID(), spotted by @ShutterQuick
attilamolnar [Thu, 16 May 2013 18:51:12 +0000 (20:51 +0200)]
Workaround for std::list::size() having linear complexity on some implementations
attilamolnar [Thu, 16 May 2013 18:33:46 +0000 (20:33 +0200)]
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
Most of these were detected by cppcheck
Adam [Thu, 16 May 2013 15:47:07 +0000 (08:47 -0700)]
Merge pull request #538 from SaberUK/master+silence-gcc
Fix GCC warnings about using C++11 features when not in C++11 mode.
Peter Powell [Thu, 16 May 2013 13:22:23 +0000 (14:22 +0100)]
Fix GCC warnings about using C++11 features when not in C++11 mode.
Adam [Thu, 16 May 2013 15:31:46 +0000 (08:31 -0700)]
Merge pull request #537 from SaberUK/master+fix-poll
Fix the poll socket engine.
Peter Powell [Thu, 16 May 2013 15:18:54 +0000 (16:18 +0100)]
Fix the poll socket engine.
Adam [Thu, 16 May 2013 14:55:08 +0000 (07:55 -0700)]
Merge pull request #536 from SaberUK/master+fix-kqueue-test
Fix kqueue test on non-Apple BSDs.
Peter Powell [Thu, 16 May 2013 14:10:26 +0000 (15:10 +0100)]
Fix kqueue test on non-Apple BSDs.
Adam [Thu, 16 May 2013 13:37:24 +0000 (06:37 -0700)]
Merge pull request #521 from SaberUK/master+configure-tests
Improve feature detection in configure.
Peter Powell [Sat, 4 May 2013 15:40:27 +0000 (16:40 +0100)]
Improve feature detection in configure.
attilamolnar [Thu, 16 May 2013 00:23:45 +0000 (02:23 +0200)]
Get rid of strlcpy(), strlcat(), charlcat() and charremove()
attilamolnar [Thu, 16 May 2013 00:15:00 +0000 (02:15 +0200)]
m_joinflood Make the code friendlier, unset +j when the module is unloaded
See
21c3232b8e0bb41727f2d65a0b2d5304587cf6be and
fae560cddc389b88c9cd34afdccf9035f4d11c5b
attilamolnar [Wed, 15 May 2013 23:57:09 +0000 (01:57 +0200)]
irc::Spacify--
attilamolnar [Wed, 15 May 2013 23:56:06 +0000 (01:56 +0200)]
Allow spaces (and more) in oper types
The spaces are converted to '_' characters in OPERTYPE for 2.0 servers
Issue #533 suggested by @ankitkv
Attila Molnar [Wed, 15 May 2013 20:48:02 +0000 (13:48 -0700)]
Merge pull request #514 from SaberUK/master+virtual-cleanup
Remove virtual keyword from a ton of methods which don't need it, introduce CXX11_OVERRIDE.
Peter Powell [Tue, 30 Apr 2013 07:38:33 +0000 (08:38 +0100)]
Tidy up keywords on module methods.
- Remove virtual keyword from a ton of methods which don't need it.
- Add override keyword to a ton of methods which do need it.
Adam [Wed, 15 May 2013 19:33:47 +0000 (12:33 -0700)]
Merge pull request #531 from SaberUK/master+snprintf-removal
Replace some C-isms with C++-isms.
attilamolnar [Wed, 15 May 2013 18:02:55 +0000 (20:02 +0200)]
Fix thread handle leak in threadengine_win32
Peter Powell [Mon, 6 May 2013 10:49:50 +0000 (11:49 +0100)]
Replace some C-isms with C++-isms.
* 'const char*' to 'const std::string&'.
* snprintf to std::string concatenation.
* Replace duplicated OneOfMatches with InspIRCd::MatchMask.