summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-17 11:04:22 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-17 11:04:22 +0100
commit869fd6ca2822ef45ad7c3939b9ab7418200daf3e (patch)
treee02b69b96edf976a95acfd3082b09e91a310f6ce /src
parent6fbfdcc3f3d20ca978246cd2c051c7f05601d055 (diff)
m_connectban Don't depend on the definition of clonemap
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_connectban.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp
index 59b8f2d36..fcb4b09ed 100644
--- a/src/modules/m_connectban.cpp
+++ b/src/modules/m_connectban.cpp
@@ -22,7 +22,8 @@
class ModuleConnectBan : public Module
{
- clonemap connects;
+ typedef std::map<irc::sockets::cidr_mask, unsigned int> ConnectMap;
+ ConnectMap connects;
unsigned int threshold;
unsigned int banduration;
unsigned int ipv4_cidr;
@@ -52,7 +53,6 @@ class ModuleConnectBan : public Module
return;
int range = 32;
- clonemap::iterator i;
switch (u->client_sa.sa.sa_family)
{
@@ -65,7 +65,7 @@ class ModuleConnectBan : public Module
}
irc::sockets::cidr_mask mask(u->client_sa, range);
- i = connects.find(mask);
+ ConnectMap::iterator i = connects.find(mask);
if (i != connects.end())
{