aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Convert a bunch of time-related config options to getDuration.Gravatar Peter Powell2017-09-031-2/+2
|
* m_spanningtree Use ASCII case insensitive map for matching server namesGravatar Attila Molnar2016-08-221-1/+1
|
* m_spanningtree Change type of Link::Name to std::stringGravatar Attila Molnar2016-08-221-8/+8
| | | | Switch to stdalgo::string::equalsci()
* m_spanningtree Add SpanningTreeUtilities::FindRouteTarget()Gravatar Attila Molnar2016-03-291-0/+13
|
* m_spanningtree Remove unused SpanningTreeUtilities::BestRouteTo()Gravatar Attila Molnar2016-03-291-26/+0
|
* m_spanningtree Remove unused SpanningTreeUtilities::DoOneToOne() overload ↵Gravatar Attila Molnar2016-03-291-10/+0
| | | | accepting a string
* m_spanningtree Fix harmless valgrind warning about uninit var usage on unloadGravatar Attila Molnar2015-05-191-0/+1
|
* m_spanningtree Clean up commentsGravatar Attila Molnar2015-05-131-12/+2
|
* Remove typedef UserMembCIter, use Channel::MemberMap::const_iterator insteadGravatar Attila Molnar2014-07-141-1/+1
|
* Rename UserMembList to Channel::MemberMap, switch all code to use itGravatar Attila Molnar2014-07-141-1/+1
|
* Change return type of Channel::GetUsers() to reference from pointer as it is ↵Gravatar Attila Molnar2014-07-141-3/+2
| | | | never NULL
* m_spanningtree Fix routing of unicast messagesGravatar Attila Molnar2014-04-141-1/+3
|
* m_spanningtree Remove the (now) undocumented disablehmac config optionGravatar Attila Molnar2014-04-081-1/+0
|
* Change allocation of InspIRCd::Timers to be physically part of the object ↵Gravatar Attila Molnar2014-03-151-1/+1
| | | | containing it
* Make the maximum hostname length configurable in the config.Gravatar Peter Powell2014-03-081-2/+2
|
* Merge insp20Gravatar Attila Molnar2014-01-211-1/+1
|\
| * Use case insensitive comparison for server names for (auto)connects, issue #662Gravatar Adam2013-11-091-1/+1
| |
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-16/+2
| |
* | Introduce Server classGravatar Attila Molnar2014-01-051-7/+13
| | | | | | | | | | - Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
* | Fix some Windows-related problems.Gravatar Peter Powell2014-01-041-1/+1
| | | | | | | | | | | | | | - Fix an error relating to the unavailability of std::back_inserter. - Fix loading configuration files when using relative paths. - Fix two methods in hashcomp being exported twice. - Remove some unimportant error messages.
* | Allow multiple allowmasks in link blocks, #679Gravatar Adam2013-11-211-3/+6
| |
* | Move prefix mode specific fields and getters into PrefixModeGravatar attilamolnar2013-09-111-1/+1
| | | | | | | | Add ModeHandler::IsPrefixMode()
* | m_spanningtree Minor fixesGravatar attilamolnar2013-09-101-3/+4
| | | | | | | | | | - Handle the case when servers SQUIT themselves - Fix extra space in channel messages
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-2/+0
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | m_spanningtree Introduce command buildersGravatar attilamolnar2013-08-271-23/+10
| |
* | m_spanningtree Add TreeServer::GetChildren() that replaces ChildCount() and ↵Gravatar attilamolnar2013-08-221-10/+7
| | | | | | | | GetChild()
* | m_spanningtree Remove duplicate code for sending channel messages from ↵Gravatar attilamolnar2013-08-221-7/+7
| | | | | | | | RouteCommand()
* | m_spanningtree Implement DoOneToMany() using DoOneToAllButSender()Gravatar attilamolnar2013-08-221-14/+1
| |
* | m_spanningtree Change TreeServer::GetSocket() to always return the socket ↵Gravatar attilamolnar2013-08-221-29/+8
| | | | | | | | | | | | | | | | that can be used to talk to the server The only exception is the tree root (us) which has no associated socket (NULL) Add TreeServer::IsRoot() and IsLocal() helpers
* | m_spanningtree Minor cleanup of functionsGravatar attilamolnar2013-08-191-4/+2
| |
* | m_spanningtree Remove SpanningTreeUtilities* fields and parametersGravatar attilamolnar2013-08-171-4/+5
| |
* | Add ConfigTag::getDuration() with optional bounds checkingGravatar attilamolnar2013-08-121-7/+2
| |
* | Modify the log message to contain the log type.Gravatar Peter Powell2013-08-041-1/+1
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-3/+3
| | | | | | | | | | | | | | | | The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them.
* | m_spanningtree Change the type of TreeServer::ServerName to std::stringGravatar attilamolnar2013-07-241-2/+2
| |
* | m_spanningtree Cleanup TreeServer and TreeSocket construction/destructionGravatar attilamolnar2013-07-241-2/+1
| |
* | Compare to ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
| |
* | Reserve ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
| |
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-4/+4
| |
* | Modularize DNSGravatar Adam2013-04-261-5/+5
| | | | | | | | | | | | The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this.
* | m_spanningtree Move CacheTimer into utilsGravatar attilamolnar2013-04-211-1/+3
| |
* | m_spanningtree Remove unneeded #includesGravatar attilamolnar2013-04-121-4/+0
| |
* | m_spanningtree Introduce new function to send channel messagesGravatar attilamolnar2013-04-121-0/+18
| | | | | | | | | | Use it from the protocol interface and PRIVMSG/NOTICE handlers Unite OnUserNotice and OnUserMessage code into LocalMessage()
* | m_spanningtree Change TreeServerList to be a set, get rid of a function ↵Gravatar attilamolnar2013-04-121-7/+1
| | | | | | | | dedicated to adding entries to it
* | m_spanningtree Utils: Move code that creates a full line from its components ↵Gravatar attilamolnar2013-04-121-19/+18
| | | | | | | | to a new function
* | m_spanningtree atoi() to ConvToInt() conversion, add const where possibleGravatar attilamolnar2013-04-121-16/+2
| | | | | | | | Remove two redundant functions from Utils
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-4/+4
| |
* | Convert IsSID() to a static member function, modules shouldn't override itGravatar attilamolnar2013-04-011-1/+1
|/
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-10/+10
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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