From d0fe371f7a286c082430b0ea4aa59cd39454cfa4 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Dec 2006 21:21:25 +0000 Subject: A few fixes, but i cant see why the reverse check doesnt work git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6161 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dnsbl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 03653350f..351ef688f 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -95,7 +95,8 @@ class DNSBLResolver : public Resolver { std::string reason = ConfEntry->reason; - while (int pos = reason.find("%ip%") != std::string::npos) + std::string::size_type pos; + while ((pos = reason.find("%ip%")) != std::string::npos) { reason.replace(pos, 4, them->GetIPString()); } @@ -106,7 +107,7 @@ class DNSBLResolver : public Resolver { case DNSBLConfEntry::I_KILL: { - them->QuitUser(ServerInstance, them, std::string("Killed (") + reason + ")"); + userrec::QuitUser(ServerInstance, them, std::string("Killed (") + reason + ")"); break; } case DNSBLConfEntry::I_KLINE: -- cgit v1.2.3