diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-22 17:39:00 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-22 17:39:00 +0000 |
commit | d92d9afa8d05d88da5f4fd08f0032eded83334e9 (patch) | |
tree | 6f7dd502fcf889b1997d0de1fe609c9c32281848 /src/wildcard.cpp | |
parent | 784105556de045a2250f68646ec5fd1caa3e1a73 (diff) |
Match with the right args at least..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10218 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/wildcard.cpp')
-rw-r--r-- | src/wildcard.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp index e717b0ad4..4d8d94eb4 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -17,11 +17,12 @@ #include "hashcomp.h" #include "inspstring.h" +#include <iostream> /* * Wildcard matching, the third (and probably final) iteration! * */ -static bool match_internal(const unsigned char *str, const unsigned char *mask, unsigned const char *map) +static bool match_internal(const unsigned char *mask, const unsigned char *str, unsigned const char *map) { const unsigned char *wild = str; const unsigned char *string = mask; @@ -73,6 +74,10 @@ static bool match_internal(const unsigned char *str, const unsigned char *mask, wild++; } + if (*wild == 0) + std::cout << "*wild == 0\n"; + else + std::cout << "*wild != 0\n"; return (*wild == 0); } |