diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-04 15:33:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-04 15:33:34 +0000 |
commit | 30a9073586a29e111f1156419779bc6ceb615322 (patch) | |
tree | 0fa06ca7dca23890abb1218b61bc5842cfe99436 /src/modules | |
parent | 9c09b20096181a5b73500a9d3d32a1406ae53b46 (diff) |
Fix craq loop
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4707 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index b727021fc..f48bd14c9 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1148,19 +1148,25 @@ class TreeSocket : public InspSocket if (to_keep.length()) { - n = 0; + unsigned int n = 2; + unsigned int q = 0; modelist[0] = params[0].c_str(); modelist[1] = to_keep.c_str(); - for (unsigned int q = 2; (q < params.size()) && (q < 64); q++) - modelist[q] = params_to_keep[n++].c_str(); + for (n = 2; (n < params.size()) && (n < 64); n++) + { + log(DEBUG,"Item %d of %d: %s",n, params.size(), params_to_keep[n].c_str()); + modelist[q++] = params_to_keep[n].c_str(); + } if (smode) { + log(DEBUG,"Send mode"); Srv->SendMode(modelist, n+2, who); } else { + log(DEBUG,"Send mode client"); Srv->CallCommandHandler("MODE", modelist, n+2, who); } |