]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
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.
Attila Molnar [Tue, 14 May 2013 23:24:08 +0000 (16:24 -0700)]
Merge pull request #523 from SaberUK/master+server-notice
Add method for writing server notices.
Peter Powell [Sun, 28 Apr 2013 11:17:53 +0000 (12:17 +0100)]
Add method for writing server notices.
This allows us to send a server notice to a user without worrying
about whether they are registered or not.
If a user receives a server notice and they are not registered
then the nickname field will contain an asterisk instead of their
nick name.
attilamolnar [Tue, 14 May 2013 21:00:58 +0000 (23:00 +0200)]
m_spanningtree UID handler: Fix parsing user modes
Spotted by @ShutterQuick
Issue #532
Peter Powell [Tue, 7 May 2013 02:55:29 +0000 (03:55 +0100)]
Clean up cross-platform compatibility.
- Move compatibility macros to a new header file.
- Sort system include files in alphabetical order.
- Clean up signal handling (thanks to Adam).
Attila Molnar [Tue, 7 May 2013 01:18:50 +0000 (18:18 -0700)]
Merge pull request #526 from SaberUK/insp20+connectban-fix
[2.0] Fix an extremely low risk crash bug in m_connectban.
Peter Powell [Mon, 6 May 2013 16:39:24 +0000 (17:39 +0100)]
Fix an extremely low risk crash bug in m_connectban.
attilamolnar [Thu, 2 May 2013 21:45:10 +0000 (23:45 +0200)]
m_ssl_gnutls Call gnutls_transport_set_errno() on Windows only
Adam [Wed, 1 May 2013 09:00:13 +0000 (04:00 -0500)]
Fix gnutls (again) on Windows by using gnutls_transport_set_errno()
Adam [Tue, 30 Apr 2013 03:09:09 +0000 (23:09 -0400)]
Fix logfile path on Windows
Fixes issue #510 reported by @JDowny
Adam [Tue, 30 Apr 2013 02:47:15 +0000 (22:47 -0400)]
Fix disabling IPV6_V6ONLY on sockets, issue #511
Attila Molnar [Sat, 27 Apr 2013 23:02:09 +0000 (16:02 -0700)]
Merge pull request #509 from SaberUK/insp20+make-distclean
Fix a few minor issues with `make distclean`.
attilamolnar [Sat, 27 Apr 2013 22:32:14 +0000 (00:32 +0200)]
Merge insp20
Peter Powell [Sat, 27 Apr 2013 17:20:56 +0000 (18:20 +0100)]
Fix a few minor issues with `make distclean`.
- Only remove the base directory for in-source installs.
- Use full paths to the source directory.
- Update the help message to be more accurate.
Daniel Vassdal [Thu, 11 Apr 2013 14:12:03 +0000 (16:12 +0200)]
Added RMODE command per suggestion #479
Attila Molnar [Sat, 27 Apr 2013 14:37:07 +0000 (07:37 -0700)]
Merge pull request #508 from ShutterQuick/inspircd+samodepatch
Prevent /mode from being incredible näive after failed attempt to samode...
Daniel Vassdal [Sat, 27 Apr 2013 11:46:14 +0000 (04:46 -0700)]
Prevent /mode from being incredible näive after failed attempt to samode a user.
Adam [Sat, 27 Apr 2013 05:13:03 +0000 (22:13 -0700)]
Merge pull request #501 from SaberUK/master+nouserdns
Move <performance:nouserdns> to <connect:nouserdns>.
Peter Powell [Sun, 21 Apr 2013 04:41:09 +0000 (05:41 +0100)]
Move <performance:nouserdns> to <connect:nouserdns>.
Adam [Fri, 26 Apr 2013 22:34:31 +0000 (18:34 -0400)]
Fix Windows
Adam [Mon, 22 Apr 2013 03:21:38 +0000 (05:21 +0200)]
Modularize DNS
The DNS modules are temporarily in commands/ so they're loaded automatically
Thanks to Attila for helping with much of this.
attilamolnar [Wed, 24 Apr 2013 17:55:01 +0000 (19:55 +0200)]
Release 2.0.12
attilamolnar [Wed, 24 Apr 2013 17:54:58 +0000 (19:54 +0200)]
Move SocketEngine::IgnoreError() code into socketengine.h and add test for EWOULDBLOCK
attilamolnar [Sun, 10 Mar 2013 13:08:51 +0000 (14:08 +0100)]
m_ssl_gnutls Add ability to load DH params from file
This greatly decreases the load time because the DH parameters no longer have to be (re)generated each time the module is loaded
attilamolnar [Tue, 23 Apr 2013 13:10:33 +0000 (15:10 +0200)]
m_spanningtree Fix crash when connecting to a remote server that has the same name as we do and also there is a link block with our server name and their password
See
49223cfe12ecd9071123f724e615e63841f2421d
attilamolnar [Tue, 23 Apr 2013 13:01:15 +0000 (15:01 +0200)]
Add config option to disable somaxconn range() check
attilamolnar [Sun, 21 Apr 2013 16:09:41 +0000 (18:09 +0200)]
m_rline Switch to OnUserRegister hook to disconnect banned users earlier
attilamolnar [Sun, 21 Apr 2013 16:03:07 +0000 (18:03 +0200)]
m_filter, m_rline Remove rlines and filters when the regex engine changes or becomes unavailable
attilamolnar [Tue, 9 Apr 2013 21:59:06 +0000 (23:59 +0200)]
m_spanningtree Move CacheTimer into utils
attilamolnar [Tue, 9 Apr 2013 21:51:06 +0000 (23:51 +0200)]
Timer changes and TimerManager enhancements
Timer::Tick() now has a bool return value: if false is returned the timer is deleted using operator delete, otherwise, if it's a repeating timer then it's rescheduled (readded)
Timers are removed from the TimerManager automatically at destruction
Timers are now stored in a multimap instead of a sorted vector
attilamolnar [Sun, 21 Apr 2013 15:41:03 +0000 (17:41 +0200)]
m_filter Fix memory leak on unload
attilamolnar [Sun, 21 Apr 2013 15:20:28 +0000 (17:20 +0200)]
Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected errors in m_callerid
attilamolnar [Sun, 21 Apr 2013 13:40:19 +0000 (15:40 +0200)]
m_permchannels Workaround for alphabetical module initialization order
Read database after all modules have been inited
Add exception logging
Fixes #485 reported by @gholms
attilamolnar [Sun, 21 Apr 2013 13:30:51 +0000 (15:30 +0200)]
Don't crop the channel name if it's too long in Channel::Channel()
...and especially don't use the shortened name in one place and the original in another
Having different <limits:maxchan> values on the same network is not supported
Attila Molnar [Sat, 20 Apr 2013 19:04:12 +0000 (12:04 -0700)]
Merge pull request #495 from SaberUK/master+fix-libcpp
Fix building with libc++.
attilamolnar [Fri, 19 Apr 2013 15:07:10 +0000 (17:07 +0200)]
Immediately stop processing whenever we detect and handle a RecvQ overrun
Thanks to @SimosNap for the report and cooperation
attilamolnar [Fri, 19 Apr 2013 15:06:35 +0000 (17:06 +0200)]
Fix uuids getting truncated in the nick hash in UserManager::AddUser() if nickmax is < 9
attilamolnar [Fri, 19 Apr 2013 15:06:07 +0000 (17:06 +0200)]
m_ident Invalidate cache after changing User::ident
attilamolnar [Fri, 19 Apr 2013 15:05:50 +0000 (17:05 +0200)]
m_callerid Allow messaging yourself while +g regardless of the ACCEPT list
Peter Powell [Mon, 15 Apr 2013 15:45:42 +0000 (16:45 +0100)]
Fix building with libc++.
- Purged std::tr1::strlower (was never used).
- Moved std::tr1::insensitive to irc::insensitive.
- Added TR1NS macro to point to the correct C++ TR1 namespace.
attilamolnar [Thu, 18 Apr 2013 20:50:12 +0000 (22:50 +0200)]
m_spanningtree Fix IS_LOCAL() check in OnRehash handler
attilamolnar [Thu, 18 Apr 2013 11:25:28 +0000 (13:25 +0200)]
m_callerid Ignore duplicate entries when unserializing callerid_data
attilamolnar [Thu, 18 Apr 2013 01:30:22 +0000 (03:30 +0200)]
m_callerid Fix bookkeeping error introduced when unserializing callerid_data
This also fixes a memory leak that didn't occur naturally but was triggerable by remote servers
Thanks to @SimosNap for the report
attilamolnar [Wed, 17 Apr 2013 20:13:26 +0000 (22:13 +0200)]
Fix Windows build
Adam [Tue, 16 Apr 2013 08:34:58 +0000 (03:34 -0500)]
Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAEWOULDBLOCK
attilamolnar [Tue, 16 Apr 2013 11:20:24 +0000 (13:20 +0200)]
m_kicknorejoin Store and compare uuids instead pointers
Fixes the off chance scenario where we disallow a join because a previously kicked user has quit and the User who is trying to join happens to be allocated at the exact same memory location
attilamolnar [Mon, 18 Feb 2013 18:56:05 +0000 (19:56 +0100)]
m_kicknorejoin Limit time to 30m by default
In the current implementation we only expire entries when someone joins, without a limit it was possible to make us practically never remove entries and consume (a tiny amount of) memory for each entry until the mode was removed/parameter was changed
The default limit of 30m is chosen to not surprise people when they upgrade. If you need to prevent rejoins for more than a minute then you should set a (timed)ban instead
Config option is available to change the limit (2.0 only)
attilamolnar [Sun, 2 Dec 2012 16:54:23 +0000 (17:54 +0100)]
m_kicknorejoin Minor improvements
- Ignore remote users
- Remove expired items in one pass
attilamolnar [Tue, 16 Apr 2013 11:11:21 +0000 (13:11 +0200)]
Close listening sockets regardless of the return value of shutdown()
attilamolnar [Mon, 15 Apr 2013 22:20:01 +0000 (00:20 +0200)]
Do not enable SO_LINGER on our sockets
Using this option allowed close() to block for up to a second
Thanks to Shamsdeen and Rix for their assistance that made this fix possible
Fixes issue #445 reported by @shaggie76
Fixes issue #494 reported by @Rixcho
attilamolnar [Sun, 14 Apr 2013 16:35:41 +0000 (18:35 +0200)]
Use std::string internally in UIDGenerator, move UUID_LENGTH into the class as a constant
attilamolnar [Sun, 14 Apr 2013 16:27:08 +0000 (18:27 +0200)]
Simplify UID generation logic
This loop is not required because we already set current_uid[pos] to 'A' before recursing if current_uid[pos] is 9
attilamolnar [Sun, 14 Apr 2013 16:20:02 +0000 (18:20 +0200)]
Extract UID/SID generation logic into a new class: UIDGenerator
attilamolnar [Sat, 13 Apr 2013 15:43:37 +0000 (17:43 +0200)]
Remove const char* versions of InspIRCd::FindNick()/FindNickOnly()/FindUUID()/FindChan()
attilamolnar [Sat, 13 Apr 2013 15:41:22 +0000 (17:41 +0200)]
m_spanningtree Remove redundant first parameter of PING/PONG
attilamolnar [Sat, 13 Apr 2013 15:20:49 +0000 (17:20 +0200)]
m_spanningtree Ignore hopcount in incoming SERVER command, always send 0 at burst
attilamolnar [Sat, 13 Apr 2013 15:15:56 +0000 (17:15 +0200)]
m_spanningtree Netburst: If a topic was ever set, send it even if it's empty
A new but empty topic should override a non-empty old topic