Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pryan committed Oct 16, 2019
1 parent 20a1b4f commit fe22c11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ZeusBaseClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ void ClientServer::handleAccept(const std::shared_ptr<PlainUser> newclient, cons
if (stoi(config->Getvalue("maxUsers")) <= Mainframe::instance()->countusers()) {
newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "The server has reached maximum number of connections."));
newclient->Close();
// } else if (Server::CheckClone(newclient->ip()) == true) {
// newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "You have reached the maximum number of clones."));
// newclient->Close();
} else if (Server::CheckClone(newclient->ip()) == true) {
newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "You have reached the maximum number of clones."));
newclient->Close();
} else if (Server::CheckDNSBL(newclient->ip()) == true) {
newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "Your IP is in our DNSBL lists."));
newclient->Close();
// } else if (Server::CheckThrottle(newclient->ip()) == true) {
// newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "You connect too fast, wait 30 seconds to try connect again."));
// newclient->Close();
} else if (Server::CheckThrottle(newclient->ip()) == true) {
newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "You connect too fast, wait 30 seconds to try connect again."));
newclient->Close();
} else if (OperServ::IsGlined(newclient->ip()) == true) {
newclient->SendAsServer("465 ZeusiRCd :" + Utils::make_string("", "You are G-Lined. Reason: %s", OperServ::ReasonGlined(newclient->ip()).c_str()));
newclient->Close();
Expand Down

0 comments on commit fe22c11

Please sign in to comment.