From cd095102f471dc86dff08e141208bc9dc38cc78f Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 17 Oct 2008 17:57:46 +0000 Subject: 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 --- src/configreader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3