aboutsummaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* | Only compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is definedGravatar Attila Molnar2014-02-071-5/+18
* | Convert LocalUserList to an intrusively linked listGravatar Attila Molnar2014-01-241-6/+3
* | Merge insp20Gravatar Attila Molnar2014-01-211-5/+12
|\|
| * Improve error reporting for <security:runas{user,group}>.Gravatar Peter Powell2013-09-261-4/+4
| * Fix a crash when running as systemd service•••- 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. Gravatar ChrisTX2013-09-081-6/+13
* | Move server description field from TreeServer into Server; remove OnGetServer...Gravatar Attila Molnar2014-01-051-1/+1
* | Introduce Server class•••- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine() Gravatar Attila Molnar2014-01-051-0/+3
* | Move stuff around a bit:•••- Create FileSystem class: * Move ServerConfig::CleanFilename to FileSystem::GetFileName and rewrite. * Move ServerConfig::ExpandPath to FileSystem. * Move ServerConfig::FileExists to FileSystem. * Move ServerConfig::StartsWithWindowsDriveLetter to FileSystem. - Move FileReader to fileutils.cpp and fix documentation. - Move UserManager::DoBackgroundUserStuff to usermanager.cpp. Gravatar Peter Powell2013-12-151-2/+2
* | Fix a few issues•••- Rehash notices - Modes in CAPAB - GetTargetAndAction() not being static in m_callerid - Loading custom configuration files using --config. (@SaberUK) - ServerConfig::Read not using std::endl. (@SaberUK) - Out of date comments in opers.conf.example, issue #624 Gravatar attilamolnar2013-11-211-1/+1
* | Remove InspIRCd::HandleRehash functor•••Call InspIRCd::Rehash() from cmd_rehash and from the SIGHUP handler Gravatar attilamolnar2013-09-081-1/+0
* | Merge insp20Gravatar attilamolnar2013-08-301-1/+1
|\|
| * Fix low risk crash when we can't determine maximum open socket count.Gravatar Peter Powell2013-07-071-1/+1
* | m_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUITGravatar attilamolnar2013-08-181-1/+1
* | Add <path> keys for all of the compile-time paths.•••Also, make all paths in the config relative to their associated directory. This reverts a change in 2.0 which turned out to be a terrible idea, especially for system-wide installations. Gravatar Peter Powell2013-08-121-1/+1
* | 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 Gravatar attilamolnar2013-08-081-1/+1
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-2/+2
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-1/+0
* | Fix a few oversights•••This partially reverts e0cb6bd46fb1d804ad6adea5688c844f7e1a0f6f Gravatar attilamolnar2013-07-011-0/+1
* | 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 Gravatar attilamolnar2013-06-181-29/+0
* | 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 Gravatar attilamolnar2013-06-181-21/+16
* | Remove unused exit codesGravatar attilamolnar2013-06-181-20/+11
* | Move code between usermanager.(cpp|h), clarify comments•••Initialize clientlist and uuidlist in UserManager constructor Gravatar attilamolnar2013-06-061-2/+0
* | Move DoBackgroundUserStuff() and AllModulesReportReady() into UserManagerGravatar attilamolnar2013-06-061-14/+1
* | Merge insp20Gravatar attilamolnar2013-06-061-3/+2
|\|
| * Update authorsGravatar attilamolnar2013-05-231-1/+2
| * Initialize local_countGravatar attilamolnar2013-05-181-2/+0
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-6/+6
* | 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. Gravatar Peter Powell2013-05-191-13/+3
* | Get rid of the NICKForced extension•••Don't run OnUserPreNick when the nick change is forced Gravatar attilamolnar2013-05-181-2/+0
* | 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). Gravatar Peter Powell2013-05-071-11/+5
* | Modularize DNS•••The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this. Gravatar Adam2013-04-261-6/+0
* | Extract UID/SID generation logic into a new class: UIDGeneratorGravatar attilamolnar2013-04-141-17/+4
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-18/+18
* | Convert ISUPPORT to use a map instead of a string.Gravatar Peter Powell2013-04-111-1/+1
* | Migrate u_listmode.h into the core, change +b to use itGravatar attilamolnar2013-04-081-6/+0
* | Add builtin modes using AddService()Gravatar attilamolnar2013-04-081-0/+1
* | Rework dynamic_reference management, introduce dynamic_reference_nocheck•••New dynamic references are now resolved at construction and all of them are re-resolved when a relevant service is added or removed; resolution is no longer done in operator-> dynamic_reference_nocheck is a variant of dynamic_reference that does not check for value being null in operator-> / operator* dynamic_reference still throws an exception when used in this case Both kinds of dynamic references support .check(): an exception is thrown if this is called when value is null Gravatar attilamolnar2013-04-081-0/+1
* | Merge inspircd_{config,version}.h into a single header file.Gravatar Peter Powell2013-04-051-1/+0
* | Stop recreating hashmaps every hour, move garbage collection code related to ...Gravatar attilamolnar2013-04-041-36/+1
* | Line ending conversionGravatar attilamolnar2013-04-041-9/+9
* | Convert IsSID() to a static member function, modules shouldn't override itGravatar attilamolnar2013-04-011-1/+0
* | Remove more deprecated code•••- ConfigReader - FloodQuitUserHandler - IsValidModuleCommand - CallCommandHandler - DoCleanup from u_listmode.h Gravatar attilamolnar2013-04-011-1/+0
|/
* Fix premature overwriting of OLDTIME that resulted in time drifts never being...Gravatar attilamolnar2013-03-281-1/+2
* Accept -c as a command line argument (equivalent to --config)Gravatar attilamolnar2013-03-251-1/+1
* Initialize the FakeClient pointer in InspIRCd::InspIRCd()Gravatar attilamolnar2013-03-241-0/+1
* Properly shut down stdin•••Replace hardcoded ints Gravatar attilamolnar2012-12-031-5/+4
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-2/+2
* Replace printf(_c) with iostreamGravatar ChrisTX2012-10-141-35/+55
* Windows: In-depth cleanup (see details)•••-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 Gravatar ChrisTX2012-10-121-51/+56
* Replace hardcoded paths with configurable ones•••This patchset aims to ease the packaging of InspIRCd for a system-wide installation scenario. Changes in detail: configure: Add the options --log-path and --data-path m_ssl_gnutls, openssl: Change the hardcoded "conf/" to the existent CONFIG_PATH macro m_xline_db: Make the location of xline.db configurable. It will use --data-path as default value, but this can be changed using the configuration files. Gravatar ChrisTX2012-10-041-1/+1