diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 18:23:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 18:23:30 +0000 |
commit | 5e854d57e3ef1b315e754a38c5f0a1287559cc7e (patch) | |
tree | 59b088636783de26d97cedae9ab16d0fc35808bc /src/users.cpp | |
parent | 0276e5138a8f886fe709ffed534aaf5ff826b5be (diff) |
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
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |