diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-25 15:55:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-25 15:55:26 +0000 |
commit | 905b594ca2ae3b8a50158f447d109f40270fd41f (patch) | |
tree | 9deea3f4406667c6fcae6c80d8858d08d092321b /src | |
parent | 656d2f265ce2547f5f7ab37c1a6016cecf6dfec7 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |