From 869fd6ca2822ef45ad7c3939b9ab7418200daf3e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 17 Mar 2014 11:04:22 +0100 Subject: m_connectban Don't depend on the definition of clonemap --- src/modules/m_connectban.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_connectban.cpp') 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 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()) { -- cgit v1.2.3