From 1622a719c7af452127bdd84ea93e4e1c1115be99 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 3 Jan 2008 15:30:42 +0000 Subject: Minor tweak git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8621 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/configreader.cpp') 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; -- cgit v1.2.3