summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2011-07-17 19:49:03 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2011-07-17 19:50:25 -0400
commit3edec1fa2663a3ab7487778dd6d3361060e9c687 (patch)
tree406f161ffe92b28a029be6c3b25a5eb6121b024a /src
parenta75efd417098dada0c4170a27a1bf76f7f55b26e (diff)
<connect deny=""> (or allow="") should not match all users
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index fe6f3915b..7f8e3df8a 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1597,7 +1597,7 @@ void LocalUser::SetClass(const std::string &explicit_name)
continue;
/* check if host matches.. */
- if (c->GetHost().length() && !InspIRCd::MatchCIDR(this->GetIPString(), c->GetHost(), NULL) &&
+ if (!InspIRCd::MatchCIDR(this->GetIPString(), c->GetHost(), NULL) &&
!InspIRCd::MatchCIDR(this->host, c->GetHost(), NULL))
{
ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "No host match (for %s)", c->GetHost().c_str());