From 3edec1fa2663a3ab7487778dd6d3361060e9c687 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sun, 17 Jul 2011 19:49:03 -0400 Subject: (or allow="") should not match all users --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3