aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp19
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:
/*