diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-07 03:04:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-07 03:04:24 +0000 |
commit | dab57ed68a554f1d0bb23dd5fa583c330a68214a (patch) | |
tree | ab8ec10cadb6ab9a3b842fc1ac7640862dfd8d64 /src/modules | |
parent | b2f3ac116127f93cd798c54e3e42500b40af256d (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_check.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index aa4e1f6cd..a20537460 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -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()); |