summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-02 13:02:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-02 13:02:41 +0000
commit87ff7e0cdd560b2e1c09fe4958eeab353c57bac1 (patch)
tree728dda3e096751018f4fedde23ec0ea6bfe9e11d /src
parent21bcc43b155d0c72cc4860f42b39009a1fc76418 (diff)
Should be working now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3421 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp16
-rwxr-xr-xsrc/svn-rev.sh2
2 files changed, 12 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 869aa7a69..15b51700f 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2096,9 +2096,12 @@ class TreeSocket : public InspSocket
s.get(c);
if (c == ' ')
{
- log(DEBUG,"Pushback(1) '%s'",param);
*pptr = 0;
- n.push_back(param);
+ if (*param)
+ {
+ log(DEBUG,"Pushback(1) '%s'",param);
+ n.push_back(param);
+ }
*param = count = 0;
pptr = param;
item++;
@@ -2122,17 +2125,20 @@ class TreeSocket : public InspSocket
count++;
}
}
- log(DEBUG,"Pushback(2) '%s'",param);
*pptr = 0;
- n.push_back(param);
+ if (*param)
+ {
+ log(DEBUG,"Pushback(2) '%s'",param);
+ n.push_back(param);
+ }
*param = count = 0;
pptr = param;
}
}
}
+ *pptr = 0;
if (*param)
{
- *pptr = 0;
log(DEBUG,"Pushback(3) '%s'",param);
n.push_back(param);
}
diff --git a/src/svn-rev.sh b/src/svn-rev.sh
index 5e3e69a77..8e8260ab5 100755
--- a/src/svn-rev.sh
+++ b/src/svn-rev.sh
@@ -1 +1 @@
-echo 3418
+echo 3420