mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Changed the way lines are populated to remote servers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2002 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
da1642834a
commit
3dec85fc94
@ -724,10 +724,6 @@ class TreeSocket : public InspSocket
|
||||
}
|
||||
}
|
||||
item++;
|
||||
if ((strchr(param.c_str(),' ')) && (!stripcolon))
|
||||
{
|
||||
param = ":"+param;
|
||||
}
|
||||
n.push_back(param);
|
||||
}
|
||||
return n;
|
||||
@ -736,8 +732,6 @@ class TreeSocket : public InspSocket
|
||||
bool ProcessLine(std::string line)
|
||||
{
|
||||
Srv->Log(DEBUG,"inbound-line: '"+line+"'");
|
||||
|
||||
std::deque<std::string> rawparams = this->Split(line,false);
|
||||
std::deque<std::string> params = this->Split(line,true);
|
||||
std::string command = "";
|
||||
std::string prefix = "";
|
||||
@ -880,7 +874,7 @@ class TreeSocket : public InspSocket
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return DoOneToAllButSender(prefix,command,rawparams,sourceserv);
|
||||
return DoOneToAllButSenderRaw(line,sourceserv);
|
||||
|
||||
}
|
||||
return true;
|
||||
@ -926,6 +920,20 @@ class TreeSocket : public InspSocket
|
||||
}
|
||||
};
|
||||
|
||||
bool DoOneToAllButSenderRaw(std::string data,std::string omit)
|
||||
{
|
||||
for (unsigned int x = 0; x < TreeRoot->ChildCount(); x++)
|
||||
{
|
||||
TreeServer* Route = TreeRoot->GetChild(x);
|
||||
if ((Route->GetSocket()) && (Route->GetName() != omit) && (BestRouteTo(omit) != Route))
|
||||
{
|
||||
TreeSocket* Sock = Route->GetSocket();
|
||||
log(DEBUG,"Sending RAW to %s",Route->GetName().c_str());
|
||||
Sock->WriteLine(FullLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool DoOneToAllButSender(std::string prefix, std::string command, std::deque<std::string> params, std::string omit)
|
||||
{
|
||||
log(DEBUG,"ALLBUTONE: Comes from %s SHOULD NOT go back to %s",prefix.c_str(),omit.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user