]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Logic fixes
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Mar 2006 12:55:45 +0000 (12:55 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Mar 2006 12:55:45 +0000 (12:55 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3419 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp
src/svn-rev.sh

index ce3d00b8c1f3f02059a0957326a38fcbcff4c4a0..c587411900da100a088c0cfafa0db5d1b2270d26 100644 (file)
@@ -2074,7 +2074,10 @@ class TreeSocket : public InspSocket
        {
                // we don't do anything with a line > 2048
                if (line.length() > 2048)
+               {
+                       log(DEBUG,"Line too long!");
                        return;
+               }
                if (!strchr(line.c_str(),' '))
                {
                        n.push_back(line);
@@ -2095,6 +2098,7 @@ class TreeSocket : public InspSocket
                        {
                                n.push_back(param);
                                *param = count = 0;
+                               pptr = param;
                                item++;
                        }
                        else
@@ -2118,13 +2122,13 @@ class TreeSocket : public InspSocket
                                        }
                                        n.push_back(param);
                                        *param = count = 0;
+                                       pptr = param;
                                }
                        }
                }
                if (*param)
-               {
                        n.push_back(param);
-               }
+
                return;
        }
 
index 337832030421432280979fcd1a84397f75081d6b..5e3e69a77190f778f9ce4e97642c5d41a422eab9 100755 (executable)
@@ -1 +1 @@
-echo 3416
+echo 3418