summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-09 05:35:19 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-09 05:35:19 +0000
commit4aeda51771f6fcc2b0d548fa33394af59038aedd (patch)
tree914fb2d77b25f913bf2ed4541b7463152931e75d /src/users.cpp
parent30ebb6b404236002478a0b570d0ab559d4effd13 (diff)
Clean up documentation of connect blocks a bit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12410 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
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;