From dd2bc148772ef004054acddfd4d6ef97a331c43a 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 | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 42c2ed64d..4e55dd8ae 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1621,19 +1621,16 @@ void LocalUser::SetClass(const std::string &explicit_name) continue; /* check if host matches.. */ - if (!c->host.empty()) + irc::spacesepstream HostList(c->host); + std::string h; + while (HostList.GetToken(h)) { - irc::spacesepstream HostList(c->host); - std::string h; - while (HostList.GetToken(h)) - { - if (InspIRCd::MatchCIDR(this->GetIPString(), h, NULL)) - goto host_found; - if (InspIRCd::Match(this->host, h, NULL)) - goto host_found; - } - continue; + if (InspIRCd::MatchCIDR(this->GetIPString(), h, NULL)) + goto host_found; + if (InspIRCd::Match(this->host, h, NULL)) + goto host_found; } + continue; host_found: /* -- cgit v1.3.1-10-gc9f91