diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-03 15:30:42 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-03 15:30:42 +0000 |
commit | 1622a719c7af452127bdd84ea93e4e1c1115be99 (patch) | |
tree | dc57eaf4f17547db568906bcf5184a8ac68bf350 /src | |
parent | edb126e57fb28314f2460a7832018c005344c876 (diff) |
Minor tweak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8621 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 20dc5b8cb..339ae33f8 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -532,9 +532,11 @@ bool InitConnect(ServerConfig* conf, const char*) conf->Classes.erase(i); 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. */ - c->SetDisabled(true); + else + { + /* also mark all existing classes disabled, if they still exist in the conf, they will be reenabled. */ + c->SetDisabled(true); + } } return true; |