aboutsummaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
Commit message (Expand)AuthorAgeFilesLines
* 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
* Don't hardcode conf/inspircd.conf as the config file, allow the configure scr...•••Fixes #264 reported by @ampt Gravatar attilamolnar2012-07-211-1/+1
* Use less memory when rehashing built-in hashmapsGravatar attilamolnar2012-07-131-10/+7
* Fix pending invites not being removed when a channel was deleted or had its T...Gravatar attilamolnar2012-06-171-0/+1
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+23
* Explicitly shut down stdio's stdin/stdout/stderr.•••The previous logic here was to only do this if stdio was connected to a controlling terminal. However, we must do this always to avoid information leaks and other problems related to stdio. The only exception is if we are in debug mode. Gravatar William Pitcock2012-04-151-16/+29
* Move my name from regular contributors to developersGravatar Jackmcbarn2011-09-281-2/+2
* Fixed Windows build on VS 2010Gravatar Adam2011-04-101-1/+1
* Add gettimeofday() fallback for systems without clock_gettimeGravatar Daniel De Graaf2010-09-081-2/+8
* Change -debug to force RAWIO level logging and disable all other logsGravatar Daniel De Graaf2010-05-081-1/+1
* Restore <options:exemptchanops> with long names•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12502 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-201-1/+2
* Reset the already_sent IDs during slow garbage collection•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12493 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-181-18/+22
* Improve support for NetBSD•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12438 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-121-1/+1
* Add random number generation functions to InspIRCd class.•••Default implementation uses libc random(), which can be better than rand(). If gnutls is loaded, gcrypt will be used to provide random numbers. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12404 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-091-1/+2
* Clean up some slow iterations•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12300 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-191-1/+0
* Remove excessive gettimeofday system calls•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12293 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-181-31/+30
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Force heap allocation of refcountbase, create usecountbase for non-allocation...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11978 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-251-1/+3
* Make User::uuid and User::server const•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11962 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-231-2/+1
* Move command-line items to CommandLineConf•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11949 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-25/+31
* Change module API to use LocalUser* where correct•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-1/+1
* Split LocalUser and RemoteUser•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11940 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-1/+1
* Fix null deref on Cleanup() called before FakeUser creation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11926 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-191-1/+2
* Clean up some log messages•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11917 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-191-0/+1
* Valgrind now runs completely clean.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-191-8/+5
* Add more debug logging of object lifetimes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11900 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-181-5/+3
* Fix module unmapping with culled Module objects•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11875 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-141-17/+4
* Move static map of extensions into ServerInstance, add const-correctness•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11873 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-141-2/+2
* removes unnecessary checks in modules, removes a superfluous else statement, ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11867 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-131-5/+3
* Change to new execution directory structure•••Don't change CWD into bin/ Remove path-resolution hacks from configuration Store pidfile and xline DBs in data, logs in logs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11866 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-131-13/+3
* Remove needless chdir() from inspircd executable•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11865 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-131-9/+0
* Fix empty SID validation and generation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11851 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-121-1/+1
* Fix automatic SID generation when generated value is less than 100•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11850 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-121-3/+4