diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2011-07-17 19:49:03 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2011-07-17 19:50:25 -0400 |
commit | 3edec1fa2663a3ab7487778dd6d3361060e9c687 (patch) | |
tree | 406f161ffe92b28a029be6c3b25a5eb6121b024a /src/users.cpp | |
parent | a75efd417098dada0c4170a27a1bf76f7f55b26e (diff) |
<connect deny=""> (or allow="") should not match all users
Diffstat (limited to 'src/users.cpp')
-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 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()); |