diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-02 12:55:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-02 12:55:45 +0000 |
commit | 2faa62837088c5171b3e65124ed93eca975261c1 (patch) | |
tree | de99ad05b4bdf3b9f478ed351a7a2bd540ac1af3 /src/modules/m_spanningtree.cpp | |
parent | 5bacd1de02febe004182e845d1179ac0cc631ea9 (diff) |
Logic fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3419 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index ce3d00b8c..c58741190 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -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; } |