From 5e854d57e3ef1b315e754a38c5f0a1287559cc7e Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 18:23:30 +0000 Subject: I dont know who said we keep going when we get a match, because thats just silly. we stop at the first connect block that matches all critera of the connection. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9738 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 608d5f728..1362b5ce9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1765,8 +1765,9 @@ ConnectClass* User::SetClass(const std::string &explicit_name) } } - /* we match this class, BUT! we must keep checking in case a further class is type deny and also matches us. */ + /* we stop at the first class that meets ALL critera. */ found = c; + break; } } -- cgit v1.3.1-10-gc9f91