]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix incorrect forward-port of patch
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 19 Jan 2010 17:02:29 +0000 (17:02 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 19 Jan 2010 17:02:29 +0000 (17:02 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12308 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_connectban.cpp

index 9b45a201496607974f8844614f5330907913deef..f9dc37b36ff9910530d8fad64e57e6d9ad4fb69c 100644 (file)
@@ -91,7 +91,7 @@ class ModuleConnectBan : public Module
                        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.", u->GetCIDRMask(range));
+                               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());
                                if (ServerInstance->XLines->AddLine(zl,NULL))
                                        ServerInstance->XLines->ApplyLines();
                                else