X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusers.cpp;h=2871653bb5e16f6d23b40282cf6b09eb01fb1be8;hb=fa676cfc88cea1b167fd91f280202f9e1d35c1ca;hp=58948e21fe761cea8055933ae0f0b839e013c81a;hpb=214c62fd773c22a3f83a19bc8f44285464c249d9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/users.cpp b/src/users.cpp index 58948e21f..2871653bb 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1865,7 +1865,7 @@ ConnectClass* User::SetClass(const std::string &explicit_name) } /* check if host matches.. */ - if (!InspIRCd::MatchCIDR(this->GetIPString(), c->GetHost(), NULL) && + if (c->GetHost().length() && !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());