mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
m_check: Include IP and gecos in host/IP-mask lookup results
This commit is contained in:
parent
70ad57e2fd
commit
675581cfc7
@ -225,13 +225,13 @@ class CommandCheck : public Command
|
||||
if (InspIRCd::Match(a->second->host, parameters[0], ascii_case_insensitive_map) || InspIRCd::Match(a->second->dhost, parameters[0], ascii_case_insensitive_map))
|
||||
{
|
||||
/* host or vhost matches mask */
|
||||
user->SendText(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
|
||||
user->SendText(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost() + " " + a->second->GetIPString() + " " + a->second->fullname);
|
||||
}
|
||||
/* IP address */
|
||||
else if (InspIRCd::MatchCIDR(a->second->GetIPString(), parameters[0]))
|
||||
{
|
||||
/* same IP. */
|
||||
user->SendText(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
|
||||
user->SendText(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost() + " " + a->second->GetIPString() + " " + a->second->fullname);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user