@@ -68,8+68,11 @@ class ModuleConnectBan : public Module
banduration = 10*60;
}
banduration = 10*60;
}
- virtual void OnUserConnect(LocalUser *u)
+ virtual void OnSetUserIP(LocalUser* u)
{
{
+ if (u->exempt)
+ return;
+
int range = 32;
clonemap::iterator i;
int range = 32;
clonemap::iterator i;
@@ -94,11+97,12 @@ class ModuleConnectBan : public Module
{
// 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());
{
// 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());