]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Changed the way lines are populated to remote servers
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Nov 2005 11:45:12 +0000 (11:45 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Nov 2005 11:45:12 +0000 (11:45 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2002 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 367e5290d2580d42e58a2005799b07f1b02463ce..20d036f8b62e1aa98ba040896533e54e50f20d54 100644 (file)
@@ -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());