summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-17 17:57:46 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-17 17:57:46 +0000
commitcd095102f471dc86dff08e141208bc9dc38cc78f (patch)
tree98f59536be3491fafbbd626df156f89b23f9456d
parentfe9c0cfc2a146d62967ad611682e7bc464ef1dfd (diff)
Don't neglect calling User::CheckClass after SetClass, so that users don't end up lingering with a NULL class if they shouldn't.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10656 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/configreader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index dd7694cbf..118507861 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -569,6 +569,12 @@ bool DoneConnect(ServerConfig *conf, const char*)
User *u = *n;
u->SetClass();
+
+ /*
+ * Check that the user falls into a valid class block.. if they don't,
+ * they need to be quit, which CheckClass will do. -- w00t
+ */
+ u->CheckClass();
}