summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: