From 905b594ca2ae3b8a50158f447d109f40270fd41f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 25 Oct 2007 15:55:26 +0000 Subject: If the connect:limit is 0, dont deny connections for going over it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8360 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index dbe179989..b945e3238 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1763,7 +1763,7 @@ ConnectClass* User::SetClass(const std::string &explicit_name) if (found) { /* deny change if change will take class over the limit */ - if (found->RefCount + 1 >= found->limit) + if (found->limit && (found->RefCount + 1 >= found->limit)) { ServerInstance->Log(DEBUG, "OOPS: Connect class limit (%u) hit, denying", found->limit); return this->MyClass; -- cgit v1.2.3