From 30a9073586a29e111f1156419779bc6ceb615322 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Aug 2006 15:33:34 +0000 Subject: Fix craq loop git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4707 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/modules') 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); } -- cgit v1.2.3