]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Fixed a permissions error, was doing work as root!
[user/henk/code/inspircd.git] / src / wildcard.cpp
index 900f314ea3a264b2e36084ab9505178ce5a359c9..f74de804a17736affd48370ada540263c5d93c4b 100644 (file)
@@ -13,7 +13,7 @@ void Delete(char* str,int pos)
 
 void Insert(char* substr,char* str,int pos)
 {
-       string a = str;
+       std::string a = str;
        a.insert(pos,substr);
        strcpy(str,a.c_str());
 }
@@ -75,7 +75,7 @@ if ((strstr(mask,"*")==0) && (strlen(literal) != strlen(mask)))
 
 }
 
-bool match(char* literal, char* mask)
+bool match(const char* literal, const char* mask)
 {
        char L[10240];
        char M[10240];