mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
3f477dd32b
commit
d0fe371f7a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user