summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 19:16:40 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 19:16:40 +0000
commitf2d6214247c75342e872c519630f0d5553190ece (patch)
tree34ea48da9a96cddb1ab36e727d9119c7fb260caf /src
parentd5ee2584e130d6663c6159a49e655dc0d34536a2 (diff)
Remove that goto, capt'n
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8356 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index c15b5c0e7..6317bca95 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -420,7 +420,6 @@ bool InitConnect(ServerConfig* conf, const char*)
conf->GetInstance()->Log(DEBUG, "Address of class is %p", c);
}
-goagain:
for (ClassVector::iterator i = conf->Classes.begin(); i != conf->Classes.end(); i++)
{
ConnectClass *c = *i;
@@ -430,7 +429,7 @@ goagain:
{
conf->GetInstance()->Log(DEFAULT, "Removing connect class, refcount is 0!");
conf->Classes.erase(i);
- goto goagain; // XXX fucking hell.. how better to do this
+ i = conf->Classes.begin(); // start over so we don't trample on a bad iterator
}
/* also mark all existing classes disabled, if they still exist in the conf, they will be reenabled. */