From 596e77768110e8fa48c8866fa1367160487d595a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 2 Jun 2005 23:39:20 +0000 Subject: Possibly fixed the 'vincent' bug git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1597 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 08897680f..7d4f8f82e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2346,6 +2346,7 @@ void NetSendMyRoutingTable() void DoSplit(const char* params) { bool go_again = true; + int x = 0; while (go_again) { go_again = false; @@ -2357,16 +2358,23 @@ void DoSplit(const char* params) { if (!strcasecmp(j->GetServerName().c_str(),params)) { + log(DEBUG,"Removing %s",j->GetServerName().c_str()); j->routes.clear(); j->CloseConnection(); me[i]->connectors.erase(j); go_again = true; + x++; break; } } } } } + if (!x) + { + log(DEBUG,"No clients to remove."); + return; + } log(DEBUG,"Removed server. Will remove clients..."); // iterate through the userlist and remove all users on this server. // because we're dealing with a mesh, we dont have to deal with anything -- cgit v1.2.3