Skip to content

Commit

Permalink
v5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pryan committed Oct 17, 2019
1 parent 2c39047 commit 42c06d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Config
{
public:
std::map <std::string, std::string> conf;
std::string version = "Zeus-5.0";
std::string version = "Zeus-5.0.1";
std::string file = "zeus.conf";

void Cargar ();
Expand Down
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 42c06d0

Please sign in to comment.