diff options
| author | 2011-07-17 19:49:03 -0400 | |
|---|---|---|
| committer | 2011-07-17 19:49:03 -0400 | |
| commit | dd2bc148772ef004054acddfd4d6ef97a331c43a (patch) | |
| tree | 50724f1782267ba5401176a49d2bee108f1e60ac /src/users.cpp | |
| parent | Inspircd 2.1 beta 2 (diff) | |
| download | inspircd++-dd2bc148772ef004054acddfd4d6ef97a331c43a.tar.gz inspircd++-dd2bc148772ef004054acddfd4d6ef97a331c43a.tar.bz2 inspircd++-dd2bc148772ef004054acddfd4d6ef97a331c43a.zip | |
<connect deny=""> (or allow="") should not match all users
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
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: /* |
