aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-05-18 18:23:30 +0000
committerGravatar brain2008-05-18 18:23:30 +0000
commit5e854d57e3ef1b315e754a38c5f0a1287559cc7e (patch)
tree59b088636783de26d97cedae9ab16d0fc35808bc /src/users.cpp
parentRemove .c_str()'s in match() calls that are no longer needed as match() nativ... (diff)
downloadinspircd++-5e854d57e3ef1b315e754a38c5f0a1287559cc7e.tar.gz
inspircd++-5e854d57e3ef1b315e754a38c5f0a1287559cc7e.tar.bz2
inspircd++-5e854d57e3ef1b315e754a38c5f0a1287559cc7e.zip
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.cpp3
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;
}
}