summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 15:47:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 15:47:06 +0000
commit7395ae9a1b14359190338dff9955c0268e0fe3fd (patch)
treedefeababf3bcb1ca7ddc182dcd41d566c40bb2e0 /src
parentcd4e197f42fe886edecfb0c1c06b9a771004fc05 (diff)
Fixes?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4710 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index d3d112ff4..0b7e20787 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1153,10 +1153,13 @@ class TreeSocket : public InspSocket
modelist[0] = params[0].c_str();
modelist[1] = to_keep.c_str();
- for (n = 2; (q < params.size()) && (n < 64); n++)
+ if (params_to_keep.size() > 2)
{
- log(DEBUG,"Item %d of %d",n, params.size());
- modelist[n] = params_to_keep[q++].c_str();
+ for (q = 2; (q < params_to_keep.size()) && (q < 64); q++)
+ {
+ log(DEBUG,"Item %d of %d", q, params_to_keep.size());
+ modelist[n++] = params_to_keep[q].c_str();
+ }
}
if (smode)