summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
AgeCommit message (Collapse)Author
2018-07-26Use CommandBase::Params instead of std::vector<std::string>.Peter Powell
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
2016-04-13m_spanningtree Ignore incoming BURST command in CONNECTED stateAttila Molnar
2015-12-07m_spanningtree Try FindServerID() first if the prefix looks like a sid in ↵Attila Molnar
TreeSocket::FindSource()
2015-01-10Reduce std::string::substr() usageAttila Molnar
substr() returns a new string while erase() and assign() modify the existing one
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-07-28m_spanningtree Move squit logic into TreeServer from TreeSocketAttila Molnar
2014-07-28m_spanningtree Remove now needless TreeSocket::ConnectionFailureShownAttila Molnar
2014-07-28m_spanningtree Ensure that TreeSocket::Close() only runs onceAttila Molnar
2014-07-27m_spanningtree Add TreeServer::BeginBurst() that marks a server as burstingAttila Molnar
Don't mark servers as bursting in the constructor
2014-07-27m_spanningtree Don't send needless BURST after introducing a serverAttila Molnar
Synthesize a BURST after SERVER for 1202 protocol servers if we are not bursting
2014-07-27m_spanningtree Remove unused parameters from the server introduction messageAttila Molnar
This does not affect the initial SERVER message containing the password
2014-07-27m_spanningtree Add newly created TreeServers to the parent's list in the ↵Attila Molnar
constructor
2014-07-27m_spanningtree Deduplicate auth finish codeAttila Molnar
2014-07-24m_spanningtree Always treat the remote client as the winner on nick ↵Attila Molnar
collision if the nick is used by a (local) client that isn't fully registered
2014-07-05m_spanningtree Extract logic that finds the source user for an incoming ↵Attila Molnar
command into a function
2014-07-05m_spanningtree Fix fake direction detection for commandsAttila Molnar
2014-06-13Change allocation of InspIRCd::Parser to be physically part of the object ↵Attila Molnar
containing it
2014-06-06m_spanningtree Forward NICK messages when they cause a collision with the ↵Attila Molnar
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.
2014-04-16m_spanningtree Throw an exception on protocol violations instead of ↵Attila Molnar
returning CMD_INVALID Catch CoreExceptions, log and close the link in OnDataReady()
2014-02-06Convert irc::stringjoiner to be a method instead of a class.Peter Powell
Add separator parameter
2014-01-05Introduce Server classAttila Molnar
- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
2013-09-10m_spanningtree Handle ERROR when fully connectedattilamolnar
2013-09-08Fix compile warnings as seen on g++ 4.4.7Adam
2013-08-27m_spanningtree Introduce command buildersattilamolnar
2013-08-22m_spanningtree Implement DoOneToMany() using DoOneToAllButSender()attilamolnar
2013-08-19m_spanningtree Minor cleanup of functionsattilamolnar
2013-08-18m_spanningtree Move all server-to-server command handlers into handler classesattilamolnar
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.
2013-08-18m_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUITattilamolnar
2013-08-17m_spanningtree Remove SpanningTreeUtilities* fields and parametersattilamolnar
2013-08-04Change modules to use the MODNAME constant when logging.Peter Powell
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.
2013-06-12m_spanningtree Move SVSMODE -> MODE translation into the appropiate place, ↵attilamolnar
ignore non-channel METADATA
2013-06-12Change command name parameter of OnPostCommand to be a Command*attilamolnar
2013-06-12Simplify stringjoiner: take 1 parameter, join from begin() to end() and use ↵attilamolnar
space as the sep char
2013-05-19Fix spacing in calls to LogManager::Log.Peter Powell
2013-05-18Change the signature of User::ForceNickChange() to accept const std::string& ↵attilamolnar
instead of const char*
2013-04-28Merge insp20attilamolnar
2013-04-14Use std::string internally in UIDGenerator, move UUID_LENGTH into the class ↵attilamolnar
as a constant
2013-04-13m_spanningtree Add channel timestamp to channel METADATAattilamolnar
2013-04-12m_spanningtree Remove unneeded #includesattilamolnar
2013-04-12m_spanningtree atoi() to ConvToInt() conversion, add const where possibleattilamolnar
Remove two redundant functions from Utils
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-10m_spanningtree Create new TreeServers for incoming connections only when ↵attilamolnar
they've accepted our credentials, not when they send SERVER
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2013-01-14m_spanningtree Fix rare desync when a KILL crosses a message that has the ↵attilamolnar
killed user's prefix and modifies global state
2012-12-15Add a flag to Command that controls whether an empty last parameter is ↵attilamolnar
allowed or not
2012-11-09m_spanningtree Refuse bogus NICK messagesattilamolnar
If the new nick looks like an uid verify that its the correct uid
2012-10-12Remove superfluous std::string()sattilamolnar
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-08-10m_spanningtree: Resolve issue #250ChrisTX