summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 16:59:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 16:59:00 +0000
commit76f7cf3ba57276d8b3ac1999b3a78ea4769d17ce (patch)
treec67a7196f963bb3cea49081729cc236221aa1b8b /src/configreader.cpp
parent8e14d91fb92768ea4fe838cd4a0ec335b7b735df (diff)
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
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
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
{