mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Adding CIDR support to m_check: as easy as adding a 'true' to match()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6242 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
b2f3ac1161
commit
dab57ed68a
@ -136,7 +136,7 @@ class cmd_check : public command_t
|
||||
user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
|
||||
}
|
||||
/* IP address */
|
||||
else if (match(a->second->GetIPString(), parameters[0]))
|
||||
else if (match(a->second->GetIPString(), parameters[0], true))
|
||||
{
|
||||
/* same IP. */
|
||||
user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
|
||||
|
Loading…
x
Reference in New Issue
Block a user