aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* m_spanningtree Ignore incoming BURST command in CONNECTED stateGravatar Attila Molnar2016-04-131-0/+5
|
* m_spanningtree Try FindServerID() first if the prefix looks like a sid in ↵Gravatar Attila Molnar2015-12-071-7/+17
| | | | TreeSocket::FindSource()
* Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-1/+1
| | | | substr() returns a new string while erase() and assign() modify the existing one
* Merge insp20Gravatar Attila Molnar2014-10-271-3/+3
|\
| * Fix various warnings when building with LLVM 3.5.Gravatar Peter Powell2014-10-131-3/+3
| | | | | | | | | | - 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]
| * m_spanningtree Always treat the remote client as the winner on nick ↵Gravatar Attila Molnar2014-07-241-1/+1
| | | | | | | | 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 Move squit logic into TreeServer from TreeSocketGravatar Attila Molnar2014-07-281-1/+1
| |
* | m_spanningtree Remove now needless TreeSocket::ConnectionFailureShownGravatar Attila Molnar2014-07-281-10/+6
| |
* | m_spanningtree Ensure that TreeSocket::Close() only runs onceGravatar Attila Molnar2014-07-281-2/+4
| |
* | m_spanningtree Add TreeServer::BeginBurst() that marks a server as burstingGravatar Attila Molnar2014-07-271-0/+2
| | | | | | | | Don't mark servers as bursting in the constructor
* | m_spanningtree Don't send needless BURST after introducing a serverGravatar Attila Molnar2014-07-271-2/+0
| | | | | | | | Synthesize a BURST after SERVER for 1202 protocol servers if we are not bursting
* | m_spanningtree Remove unused parameters from the server introduction messageGravatar Attila Molnar2014-07-271-1/+0
| | | | | | | | This does not affect the initial SERVER message containing the password
* | m_spanningtree Add newly created TreeServers to the parent's list in the ↵Gravatar Attila Molnar2014-07-271-1/+0
| | | | | | | | constructor
* | m_spanningtree Deduplicate auth finish codeGravatar Attila Molnar2014-07-271-11/+17
| |
* | m_spanningtree Extract logic that finds the source user for an incoming ↵Gravatar Attila Molnar2014-07-051-33/+39
| | | | | | | | command into a function
* | m_spanningtree Fix fake direction detection for commandsGravatar Attila Molnar2014-07-051-3/+3
| |
* | Change allocation of InspIRCd::Parser to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | | | | | containing it
* | m_spanningtree Throw an exception on protocol violations instead of ↵Gravatar Attila Molnar2014-04-161-17/+7
| | | | | | | | | | | | returning CMD_INVALID Catch CoreExceptions, log and close the link in OnDataReady()
* | Convert irc::stringjoiner to be a method instead of a class.Gravatar Peter Powell2014-02-061-6/+3
| | | | | | | | Add separator parameter
* | Introduce Server classGravatar Attila Molnar2014-01-051-10/+3
| | | | | | | | | | - Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
* | m_spanningtree Handle ERROR when fully connectedGravatar attilamolnar2013-09-101-0/+6
| |
* | Fix compile warnings as seen on g++ 4.4.7Gravatar Adam2013-09-081-1/+1
| |
* | m_spanningtree Introduce command buildersGravatar attilamolnar2013-08-271-8/+3
| |
* | m_spanningtree Implement DoOneToMany() using DoOneToAllButSender()Gravatar attilamolnar2013-08-221-2/+2
| |
* | m_spanningtree Minor cleanup of functionsGravatar attilamolnar2013-08-191-1/+1
| |
* | m_spanningtree Move all server-to-server command handlers into handler classesGravatar attilamolnar2013-08-181-174/+36
| | | | | | | | These commands are not registered in or called by the core. When looking for the handler of a command a new command table is searched first which contains all server-to-server commands. If a handler cannot be found in there, the core command table is consulted.
* | m_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUITGravatar attilamolnar2013-08-181-4/+0
| |
* | m_spanningtree Remove SpanningTreeUtilities* fields and parametersGravatar attilamolnar2013-08-171-1/+1
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-6/+6
| | | | | | | | | | | | | | | | 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 Move SVSMODE -> MODE translation into the appropiate place, ↵Gravatar attilamolnar2013-06-121-7/+1
| | | | | | | | ignore non-channel METADATA
* | Change command name parameter of OnPostCommand to be a Command*Gravatar attilamolnar2013-06-121-2/+2
| |
* | Simplify stringjoiner: take 1 parameter, join from begin() to end() and use ↵Gravatar attilamolnar2013-06-121-3/+3
| | | | | | | | space as the sep char
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-1/+1
| |
* | Change the signature of User::ForceNickChange() to accept const std::string& ↵Gravatar attilamolnar2013-05-181-1/+1
| | | | | | | | instead of const char*
* | Merge insp20Gravatar attilamolnar2013-04-281-0/+12
|\|
| * m_spanningtree Create new TreeServers for incoming connections only when ↵Gravatar attilamolnar2013-04-101-0/+12
| | | | | | | | they've accepted our credentials, not when they send SERVER
* | Use std::string internally in UIDGenerator, move UUID_LENGTH into the class ↵Gravatar attilamolnar2013-04-141-1/+1
| | | | | | | | as a constant
* | m_spanningtree Add channel timestamp to channel METADATAGravatar attilamolnar2013-04-131-0/+6
| |
* | m_spanningtree Remove unneeded #includesGravatar attilamolnar2013-04-121-4/+0
| |
* | m_spanningtree atoi() to ConvToInt() conversion, add const where possibleGravatar attilamolnar2013-04-121-2/+2
| | | | | | | | Remove two redundant functions from Utils
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-6/+6
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-2/+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
* 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
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-2/+2
|
* Fix more undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-301-1/+4
| | | | | | std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
* m_spanningtree: Resolve issue #250Gravatar ChrisTX2012-08-101-2/+2
|
* m_spanningtree Return when ecountering an invalid command coming from a ↵Gravatar attilamolnar2012-07-011-1/+3
| | | | remote server