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
This commit is contained in:
brain 2006-12-29 21:21:25 +00:00
parent 3f477dd32b
commit d0fe371f7a

View File

@ -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: