diff --git a/include/Config.h b/include/Config.h index 13b7f9d3d..4f34c5ebe 100644 --- a/include/Config.h +++ b/include/Config.h @@ -26,7 +26,7 @@ class Config { public: std::map conf; - std::string version = "Zeus-5.0"; + std::string version = "Zeus-5.0.1"; std::string file = "zeus.conf"; void Cargar (); diff --git a/src/ZeusBaseClass.cpp b/src/ZeusBaseClass.cpp index 189dde6ef..2bad638c4 100644 --- a/src/ZeusBaseClass.cpp +++ b/src/ZeusBaseClass.cpp @@ -225,15 +225,15 @@ void ClientServer::handleAccept(const std::shared_ptr 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();