summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-29 21:21:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-29 21:21:25 +0000
commitd0fe371f7a286c082430b0ea4aa59cd39454cfa4 (patch)
tree2e33171cb47a462256aa567214bd2fb0544b09bc
parent3f477dd32bb14f39992c0a246c4bbb3db40c48e0 (diff)
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
-rw-r--r--src/modules/m_dnsbl.cpp5
1 files 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: