aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
Commit message (Collapse)AuthorAgeFilesLines
* Fix challenge auth when using m_hash_gnutls instead of m_sha256.Gravatar Peter Powell2016-08-051-2/+3
|
* Fix bursting channel bansGravatar Adam2016-08-012-11/+16
|
* Minor spelling errors in m_spanningtree.soGravatar Guillaume Delacour2016-02-282-2/+2
|
* m_spanningtree Fix TreeRoot UserCount being possibly wrong if loaded after ↵Gravatar Attila Molnar2015-02-041-1/+1
| | | | startup
* Fix a snotice in m_spanningtree incorrectly using an unsigned long.Gravatar Peter Powell2015-01-031-2/+2
| | | | | This value can be negative so it should be a signed long not an unsigned long.
* Remove some dead code found by CoverityGravatar Attila Molnar2014-10-261-2/+0
|
* m_spanningtree Rebuild serverlist and sidlist when receiving a specific RequestGravatar Attila Molnar2014-10-134-0/+25
| | | | Issue #923
* Fix various warnings when building with LLVM 3.5.Gravatar Peter Powell2014-10-132-4/+4
| | | | | - 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]
* Update example configuration files, fix typos and caseGravatar Attila Molnar2014-07-241-1/+1
| | | | Mention m_regex_stdlib in the list of regex providers after m_filter
* m_spanningtree Always treat the remote client as the winner on nick ↵Gravatar Attila Molnar2014-07-242-4/+15
| | | | collision if the nick is used by a (local) client that isn't fully registered
* m_spanningtree Forward NICK messages when they cause a collision with the ↵Gravatar Attila Molnar2014-06-061-7/+7
| | | | | | | | | | | | | | new nick param rewritten to the uuid Suppressing these messages meant that we relied on an appropriate NICK to come from the direction the SAVE was sent to; this left all servers behind us uninformed until the target server of the SAVE reacted with a nick change to uuid. This was problematic because someone can legitimately change nick to the past nick of the SAVEd user on a server that already has the SAVEd user with the uuid nick and that nick change message can reach servers that haven't yet seen the nick change to uuid of the SAVEd user.
* m_spanningtree Fix cleanup of connections when unloading a module that ↵Gravatar Attila Molnar2014-06-061-0/+3
| | | | provides an IOHook
* Update server.cppGravatar Dan Parsons2014-05-211-2/+2
| | | | Rewrote "invalid credentials" error message to remove confusion regarding "server snomask", which some users interpreted as "I must make sure the snomask on each server is identical" (which makes no sense), when really the intention is basically "look at the logs on the other server".
* m_spanningtree Advertise the availability of m_globops in CAPAB CAPABILITIESGravatar Attila Molnar2014-04-291-0/+6
|
* m_spanningtree Set the bursting flag in the FJOIN handler based on whether ↵Gravatar Attila Molnar2014-04-261-2/+3
| | | | | | | | the source of the FJOIN is bursting or not Previously the flag was true if our route to the source was bursting, which resulted in m_joinflood incorrectly registering netjoins when a remote server was bursting Fixes issue #839 reported by @joshtek0
* Add REG_ALL checks to treat unregistered users as nonexistent in more casesGravatar Attila Molnar2014-04-041-1/+1
|
* m_spanningtree Do pointer comparison before deleting one of the pointers in ↵Gravatar Attila Molnar2014-03-021-1/+2
| | | | | | TreeSocket::Squit() While the previous code worked fine in practice, it was incorrect in theory
* m_spanningtree Don't send snotices to servers about remote servers splittingGravatar Attila Molnar2014-03-021-1/+1
| | | | The snotice is sent to opers when the SQUIT is processed by their server
* m_spanningtree Fix nick TS desync on SVSNICKGravatar Attila Molnar2013-12-153-3/+21
| | | | Don't accept invalid timestamps
* Use case insensitive comparison for server names for (auto)connects, issue #662Gravatar Adam2013-11-092-4/+4
|
* Fix parsing ADDLINE with expiration or creation dates past ~2038 probablyGravatar Adam2013-11-091-2/+6
|
* Fix issue #657, fix sending FNAME with spacesGravatar Adam2013-11-091-1/+1
|
* m_spanningtree Fix timestamp in AWAYGravatar attilamolnar2013-08-311-1/+1
|
* m_spanningtree When an IOHook goes away close all pending connections that ↵Gravatar attilamolnar2013-08-212-1/+10
| | | | use it
* Use server ids when propagating squitsGravatar Adam2013-07-261-2/+2
|
* m_spanningtree FJOIN handler: Merge and take maxmodes into consideration ↵Gravatar attilamolnar2013-06-121-5/+24
| | | | when applying non-prefix modes
* Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-053-31/+5
|
* m_spanningtree Fix FIDENT routingGravatar attilamolnar2013-06-041-2/+1
| | | | A new FIDENT was broadcast for each incoming FIDENT causing harmless but unnecessary server to server traffic
* Remove unused variables, avoid copies where possible, check empty() instead ↵Gravatar attilamolnar2013-05-161-1/+0
| | | | | | of size() == 0 Most of these were detected by cppcheck
* m_spanningtree Fix crash when connecting to a remote server that has the ↵Gravatar attilamolnar2013-04-231-2/+3
| | | | | | same name as we do and also there is a link block with our server name and their password See 49223cfe12ecd9071123f724e615e63841f2421d
* m_spanningtree Fix IS_LOCAL() check in OnRehash handlerGravatar attilamolnar2013-04-181-1/+1
|
* m_spanningtree Create new TreeServers for incoming connections only when ↵Gravatar attilamolnar2013-04-103-25/+60
| | | | they've accepted our credentials, not when they send SERVER
* m_spanningtree Fix incoming channel modes being lost for 0-user permanent ↵Gravatar attilamolnar2013-03-201-0/+8
| | | | | | channels on the losing side of a netmerge This did not affect listmodes
* Remove unused variables detected by Clang 4.2.Gravatar Peter Powell2013-02-012-3/+2
|
* m_spanningtree Fix rare desync when a KILL crosses a message that has the ↵Gravatar attilamolnar2013-01-141-3/+19
| | | | killed user's prefix and modifies global state
* Add a flag to Command that controls whether an empty last parameter is ↵Gravatar attilamolnar2012-12-151-0/+8
| | | | allowed or not
* Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a ↵Gravatar attilamolnar2012-12-154-4/+4
| | | | | | target nickname If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
* cmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hopGravatar attilamolnar2012-11-291-0/+3
| | | | Fixes #375 reported by @JDowny
* m_spanningtree Remove redundant params.size() checksGravatar attilamolnar2012-11-282-11/+0
| | | | TreeSocket::ProcessConnectedLine() and CommandParser::CallHandler() only call the handler when there are enough parameters
* Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand()Gravatar attilamolnar2012-11-192-3/+3
|
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-10/+10
|
* m_spanningtree SVSNICK needs 3 parametersGravatar attilamolnar2012-11-091-1/+1
|
* m_spanningtree Refuse bogus NICK messagesGravatar attilamolnar2012-11-091-1/+7
| | | | If the new nick looks like an uid verify that its the correct uid
* Make better use of User::GetFullRealHost()Gravatar attilamolnar2012-10-211-1/+1
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-124-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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
* Remove superfluous std::string()sGravatar attilamolnar2012-10-128-20/+20
|
* m_spanningtree Fix undefined behavior caused by referencing the returned ↵Gravatar attilamolnar2012-10-071-1/+2
| | | | buffer by std::string::c_str() when the object is temporary
* m_spanningtree Fill a parameterlist in OnAddLine/OnDelLineGravatar attilamolnar2012-10-031-7/+8
|
* m_spanningtree Simplify OnMode and OnSetAway handlersGravatar attilamolnar2012-10-031-13/+5
|
* m_spanningtree Remove empty RedoConfig()Gravatar attilamolnar2012-10-032-5/+0
|