summaryrefslogtreecommitdiff
path: root/src/server.cpp
AgeCommit message (Collapse)Author
2016-09-14Improve the default ISUPPORT tokens.Peter Powell
- Replace the deprecated MAXCHANNELS token with CHANLIMIT. - Remove the deprecated FNC token (other implementations can force a nick change without sending this token so informing clients of that we might force a nick change is pointless)
2016-09-02Update stuff for the new versioning system.Peter Powell
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2015-05-17Move InspIRCd::SendError() to cmd_dieAttila Molnar
Fix multiple ERROR messages being sent to unregistered users by removing the "Exiting with status..." message
2014-10-27Merge insp20Attila Molnar
2014-10-13Fix various warnings when building with LLVM 3.5.Peter Powell
- warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] - warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
2014-09-15Fix incorrect cleanup order in InspIRCd::Exit()Attila Molnar
classbase objects such as callers call LogManager::Log() on destruction unless ServerInstance is NULL
2014-07-14Minor ISupportManager changesAttila Molnar
- Make GetLines() a const method - Rename Lines to cachedlines - Get rid of a variable in Build()
2014-06-22Change all occurrences of plain sort() to std::sort()Attila Molnar
2014-06-13Change allocation of InspIRCd::Threads to be physically part of the object ↵Attila Molnar
containing it
2014-05-23Prefix all definitions in config.h to avoid potential collisions.Peter Powell
2014-04-14Remove WALLCHOPS and WALLVOICES ISUPPORT tokensAttila Molnar
These tokens have been deprecated in favour of STATUSMSG for a long time
2014-02-18Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ↵Attila Molnar
ModeType
2014-02-08Replace SocketEngine::GetName() with INSPIRCD_SOCKETENGINE_NAME defineAttila Molnar
2013-12-15Remove some pointless code:Peter Powell
- Remove the CHARSET entry from ISUPPORT. CHARSET was removed in draft-brocklesby-irc-isupport-03 and we always used the default value anyway. This has also been removed in the latest version of Charybdis. - Remove irc::sockets::satouser. This helper method was longer than the code it replaced.
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-09-08Remove InspIRCd::HandleRehash functorattilamolnar
Call InspIRCd::Rehash() from cmd_rehash and from the SIGHUP handler
2013-08-19Remove cmd_map from the coreattilamolnar
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam
2013-06-18Remove unused exit codesattilamolnar
2013-06-02ISupportManager: Tidy-up, expand commentsattilamolnar
2013-06-01Remove #define MAXPARAMETERS and "MAXPARA" 005 tokenattilamolnar
2013-05-19Move LogHeader to LogStream.Peter Powell
2013-05-16Fix padding bug in GenerateSID(), spotted by @ShutterQuickattilamolnar
2013-05-15Replace some C-isms with C++-isms.Peter Powell
* 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask.
2013-04-14Use std::string internally in UIDGenerator, move UUID_LENGTH into the class ↵attilamolnar
as a constant
2013-04-14Simplify UID generation logicattilamolnar
This loop is not required because we already set current_uid[pos] to 'A' before recursing if current_uid[pos] is 9
2013-04-14Extract UID/SID generation logic into a new class: UIDGeneratorattilamolnar
2013-04-11Convert ISUPPORT to use a map instead of a string.Peter Powell
2013-04-05Merge inspircd_{config,version}.h into a single header file.Peter Powell
2013-04-04Stop recreating hashmaps every hour, move garbage collection code related to ↵attilamolnar
local users to UserManager
2012-10-12Windows: In-depth cleanup (see details)ChrisTX
-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
2012-09-30Fix more undefined behavior caused by referencing the returned buffer by ↵attilamolnar
std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
2012-07-27Don't hard code the branch version.Peter Powell
2012-07-02Add CHANNELLEN to isupportAlyx
2012-05-27While at it, use a constant parameter for calling IncrementUID in GetUIDattilamolnar
Get rid of curindex, use a bool to determine if we need to initialize
2012-05-27Fix generating invalid UIDs after current_uid is 000Z99999 (next UID became ↵attilamolnar
000[AAAAA)
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2012-04-14Fix unused variables reported by the clang static analyzer.Peter Powell
2011-03-18Values were -1, couldnt find an explanation for that. So appliedDjSlash
submitted patch from bug 114 (thanks to DarkStorm) and removed additional -1's.
2010-04-28Add log header including ircd versionDaniel De Graaf
2010-02-16Remove SYSTEM and related sensitive information from the non-oper VERSION linedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12471 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-15Show opers the raw VERSION string, not the custom onedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12470 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2009-11-03Remove AllowHalfop item from server configdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11996 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-22Clean up unused functions, add nonicks operoverride [dKingston]danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11951 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-20Fix GetUID generating 10-character UUIDsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11932 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-16Clean up crash on destruction of statics at exitdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11877 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-03Get rid of a bunch of memory-wasting C-style stringsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26Remove InspIRCd* parameters and fieldsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7