From 76f7cf3ba57276d8b3ac1999b3a78ea4769d17ce Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Aug 2007 16:59:00 +0000 Subject: Revised fix for bug #367 pointed out during qa by owine, thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7830 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index d93a1d4d8..e6aa30de3 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -416,14 +416,14 @@ bool DoConnect(ServerConfig* conf, const char* tag, char** entries, ValueList &v */ for (ClassVector::iterator item = conf->Classes.begin(); item != conf->Classes.end(); ++item) { - if (item->GetName() == name) + if (item->GetName() == parent) { ConnectClass c(name, *item); c.Update(timeout, flood, *allow ? allow : deny, pingfreq, password, threshold, sendq, recvq, localmax, globalmax, maxchans, port); conf->Classes.push_back(c); } } - throw CoreException("Class name '" + std::string(name) + "' is configured to inherit from class '" + std::string(name) + "' which cannot be found."); + throw CoreException("Class name '" + std::string(name) + "' is configured to inherit from class '" + std::string(parent) + "' which cannot be found."); } else { -- cgit v1.2.3