From 4aeda51771f6fcc2b0d548fa33394af59038aedd Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 9 Feb 2010 05:35:19 +0000 Subject: Clean up documentation of connect blocks a bit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12410 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index c01b5d1b2..62bf0f543 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1646,6 +1646,10 @@ void LocalUser::SetClass(const std::string &explicit_name) continue; } + bool regdone = (registered != REG_NONE); + if (c->config->getBool("registered", regdone) != regdone) + continue; + /* we stop at the first class that meets ALL critera. */ found = c; break; -- cgit v1.2.3