aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Remove swhois messages set in the oper block on deoper.Gravatar Peter Powell2018-04-091-2/+7
| | | | Closes #1240.
* Fix the command table not being case insensitive.Gravatar Peter Powell2017-10-161-1/+5
| | | | | | This is not an issue normally but in some circumstances (e.g. when disabling commands) it can result in command lookups failing even when they exist.
* Use DLLManager::RetrieveLastError() on all platforms.Gravatar Peter Powell2017-08-261-2/+0
| | | | | | | | | | | This prevents a bug where we send malformed messages to the client when dlerror() returns an error message containing more than one line. This has been observed on macOS but probably will happen on other UNIX systems too. This also fixes a potential problem where dlerror() returns NULL and converting it to std::string causes a crash. I can't see any way that this might happen but it is better to be safe than sorry.
* Fix some compiler warnings.Gravatar Peter Powell2017-03-201-1/+1
| | | | | warning: macro name is a reserved identifier [-Wreserved-id-macro] warning: extra ';' after member function definition [-Wextra-semi]
* Don't exit on rehash if the pid file cannot be writtenGravatar Attila Molnar2016-06-172-2/+3
|
* Don't show snotices for kills from ulined clientsGravatar Adam2016-02-251-0/+4
|
* Limit DNS cache sizeGravatar Attila Molnar2016-02-131-0/+4
|
* Merge pull request #1004 from SaberUK/insp20+fix-various-warningsGravatar Attila Molnar2015-03-231-0/+2
|\ | | | | [2.0] Fix various warnings with the new Doxygen and LLVM releases.
| * Fix various Doxygen warnings.Gravatar Peter Powell2015-02-271-0/+2
| |
* | Rebuild clone counts on rehashGravatar Adam2015-03-211-0/+4
|/
* Fix modules not being versioned on Windows.Gravatar Peter Powell2015-01-171-1/+2
|
* Avoid calling methods on NULL pointers wherever possible.Gravatar Peter Powell2014-10-132-1/+6
| | | | | | The trick we use to allow this is undefined behaviour and is not liked by LLVM. We should stop using it but it has the potential to break to many things for a minor release.
* Fix hash_map.h on non-GNU C++ standard library implementations.Gravatar Peter Powell2014-10-051-9/+9
|
* Do not use the result of the dns cache when the query type of the result is ↵Gravatar Adam2014-09-081-24/+30
| | | | different from the type of the query. #66
* Do not export callersGravatar Adam2014-05-081-10/+10
| | | | Their functions are all inlined and Windows gives unresolved symbol errors
* Fix undefined symbol error on module load if compiled with Clang 3.4Gravatar Attila Molnar2014-04-192-10/+10
| | | | Fixes issue #803 reported by @SaberUK
* Bump API version because of 3f4d54eb031f1cd6b016dfe1f768ed86303e3856Gravatar Attila Molnar2014-01-211-1/+1
|
* Fix ConvToStr(char)Gravatar attilamolnar2013-09-141-1/+1
|
* Fix a shadow warning created by ConfigTag::createGravatar ChrisTX2013-09-131-2/+1
|
* Fix a crash when running as systemd serviceGravatar ChrisTX2013-09-081-1/+2
| | | | | | | | | - Fix a NULL dereference if a signal is raised in the constructor of the class InspIRCd - Resolve the parent's process exit code being SIGTERM=15 and typically not EXIT_SUCCESS thus A combination of the two caused crashes when running as systemd unit.
* Don't CoreExport reference, fixes m_dnsbl on WindowsGravatar attilamolnar2013-08-301-1/+1
| | | | The explicit instantiations of reference are now useless; remove
* Use the correct socket related error messages on WindowsGravatar Adam2013-07-141-0/+8
|
* Initialize local_countGravatar attilamolnar2013-05-181-0/+2
|
* Workaround for std::list::size() having linear complexity on some ↵Gravatar attilamolnar2013-05-161-1/+5
| | | | implementations
* Remove unused variables, avoid copies where possible, check empty() instead ↵Gravatar attilamolnar2013-05-162-11/+1
| | | | | | of size() == 0 Most of these were detected by cppcheck
* Move SocketEngine::IgnoreError() code into socketengine.h and add test for ↵Gravatar attilamolnar2013-04-241-0/+13
| | | | EWOULDBLOCK
* Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing ↵Gravatar Adam2013-04-161-0/+5
| | | | WSAEWOULDBLOCK
* Don't attempt to unload or reload modules that are waiting to be unloadedGravatar attilamolnar2013-04-051-1/+6
|
* Add support for mandatory tags in included config filesGravatar attilamolnar2013-03-201-2/+2
| | | | | | | | | If the mandatory tag is not found in the included config, the rehash is aborted. This is especially useful for remote includes, as it allows users to have a dummy tag at the end of the included config to indicate that the config has been wholly read. This method does not depend on exit codes so even situations where wget returns an empty or a wrong page that we would otherwise accept can be detected and an error can be generated before we assume that the contents have disappeared (and unload all modules, if the included file is supposed to contain module tags, for example). Usage: <include ... mandatorytag="namehere"> - if the included config doesn't contain a <namehere> tag then the rehash is aborted Fixes #30 reported by @Justasic
* Remove dead code from DNSGravatar attilamolnar2013-03-111-5/+0
|
* Fix m_dnsbl not checking cgiirc users when the cgiirc address is elinedGravatar attilamolnar2013-03-112-5/+5
|
* Use the preprocessor to detect whether hash_map is available.Gravatar Peter Powell2013-01-281-4/+6
|
* Fix warning: "const type qualifier on return type has no effect".Gravatar Peter Powell2013-01-161-1/+1
|
* Include <list> in base.h to prevent build errors on OpenBSD.Gravatar Peter Powell2012-12-251-0/+1
|
* Add a flag to Command that controls whether an empty last parameter is ↵Gravatar attilamolnar2012-12-152-2/+12
| | | | allowed or not
* Remove ServerLimits::Finalise(), it's completely wrongGravatar attilamolnar2012-12-091-15/+0
| | | | Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
* Change a few signed counter variables to unsigned so they roll over laterGravatar attilamolnar2012-12-052-6/+6
|
* Throw an exception when attempting to register an extension with a name that ↵Gravatar attilamolnar2012-12-021-1/+1
| | | | | | already exists Previously this silently failed
* Make LocalUserList an std::listGravatar attilamolnar2012-11-293-2/+6
|
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-292-1/+5
|
* Fix typo in doc and remove some whitespaceGravatar attilamolnar2012-10-291-2/+2
|
* Move ServerConfig::ProcessColors() into class InspIRCd, as a helper functionGravatar attilamolnar2012-10-292-4/+5
| | | | Change signature to accept a file_cache reference so modules can use it easily
* Fix for #268.Gravatar Peter Powell2012-10-191-0/+5
| | | | | - Move color stripping code to helperfuncs. - Strip color codes before matching filters.
* Resolve two warnings clang complains aboutGravatar ChrisTX2012-10-141-1/+1
| | | | | No newline at end of file in consolecolors.h String plus int in snomasks
* Replace printf(_c) with iostreamGravatar ChrisTX2012-10-142-1/+101
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-1214-50/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
* Move simple user and channel mode handlers into a single fileGravatar attilamolnar2012-10-089-241/+100
|
* Change User::SetClientIP() to be virtualGravatar attilamolnar2012-10-031-2/+2
|
* Make ConfigReader::GetSID() return a const reference to a string instead of ↵Gravatar attilamolnar2012-09-301-1/+1
| | | | a string
* Call OnUserSetIP() whenever the IP of a local user changes, set ↵Gravatar attilamolnar2012-09-131-0/+6
| | | | ident,host,dhost in LocalUser constructor