git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10218
e03df62e-2008-0410-955e-
edbf42e46eb7
dirent* entry = NULL;
while (0 != (entry = readdir(library)))
{
- if (InspIRCd::Match(entry->d_name, "cmd_*.so", NULL))
+ if (InspIRCd::Match(entry->d_name, "cmd_*.so"))
{
if (!user)
{
}
}
}
+ else
+ printf("NOT loading %s, not a cmd\n", entry->d_name);
}
closedir(library);
if (!user)
#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;
wild++;
}
+ if (*wild == 0)
+ std::cout << "*wild == 0\n";
+ else
+ std::cout << "*wild != 0\n";
return (*wild == 0);
}