+ banmessage = tag->getString("banmessage", "Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.");
}
void OnSetUserIP(LocalUser* u) CXX11_OVERRIDE
}
void OnSetUserIP(LocalUser* u) CXX11_OVERRIDE
@@ -57,7+53,6 @@ class ModuleConnectBan : public Module
return;
int range = 32;
return;
int range = 32;
- clonemap::iterator i;
switch (u->client_sa.sa.sa_family)
{
switch (u->client_sa.sa.sa_family)
{
@@ -70,7+65,7 @@ class ModuleConnectBan : public Module
@@ -79,7+74,7 @@ class ModuleConnectBan : public Module
if (i->second >= threshold)
{
// Create zline for set duration.
if (i->second >= threshold)
{
// Create zline for set duration.
- ZLine* zl = new ZLine(ServerInstance->Time(), banduration, ServerInstance->Config->ServerName, "Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.", mask.str());
+ ZLine* zl = new ZLine(ServerInstance->Time(), banduration, ServerInstance->Config->ServerName, banmessage, mask.str());
if (!ServerInstance->XLines->AddLine(zl, NULL))
{
delete zl;
if (!ServerInstance->XLines->AddLine(zl, NULL))
{
delete zl;
@@ -87,7+82,7 @@ class ModuleConnectBan : public Module